DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

9f62563cabfa0be2b114cac4618e3449b49d5638 — Jonni Liljamo 7 days ago b0c2c2d
feat: nix
1 files changed, 29 insertions(+), 0 deletions(-)

A modules/nixos/nix.nix
A modules/nixos/nix.nix => modules/nixos/nix.nix +29 -0
@@ 0,0 1,29 @@
{
  flake.modules.nixos.nix = {...}: {
    nix = {
      gc = {
        automatic = true;
        dates = "weekly";
        options = "--delete-older-than 7d";
      };
      settings = {
        auto-optimise-store = true;
        experimental-features = ["nix-command" "flakes"];
        trusted-users = ["@wheel"];
        trusted-substituters = [
          "https://cache.hydra.lab.liljamo.com"
          "https://hyprland.cachix.org"
        ];
        trusted-public-keys = [
          "hydracache:gJygjf4gFURF0LZhKosqLyFW4PG/EMgJSaAbaCnsOEA="
          "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
        ];
      };
    };

    programs.nh = {
      enable = true;
      flake = "$HOME/dev/nix-arta";
    };
  };
}