configure nix in home-manager

This commit is contained in:
cy 2025-01-06 16:33:40 -05:00
parent 5c7d5ee4f2
commit 850432f8fd
2 changed files with 21 additions and 1 deletions

View file

@ -5,6 +5,27 @@
../zsh
];
nix = {
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
flake-registry = "";
trusted-users = [ "root" "@wheel" ];
trusted-public-keys = [ "central:uWhjva6m6dhC2hqNisjn2hXGvdGBs19vPkA1dPEuwFg=" ];
substituters = [ "https://cache.cything.io/central" ];
};
gc = {
automatic = true;
frequency = "19:00";
persistent = true;
options = "--delete-older-than 14d";
};
extraOptions = ''
builders-use-substitutes = true
'';
package = pkgs.nix;
};
home.sessionVariables = {
"EDITOR" = "nvim";
};

View file

@ -23,7 +23,6 @@
extraOptions = ''
builders-use-substitutes = true
'';
};
time.timeZone = "America/Toronto";
networking.firewall.logRefusedConnections = false;