diff --git a/home/yt/common.nix b/home/yt/common.nix index f14fc37..e07568e 100644 --- a/home/yt/common.nix +++ b/home/yt/common.nix @@ -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"; }; diff --git a/hosts/common.nix b/hosts/common.nix index 373f0d5..51a9706 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -23,7 +23,6 @@ extraOptions = '' builders-use-substitutes = true ''; - }; time.timeZone = "America/Toronto"; networking.firewall.logRefusedConnections = false;