diff options
author | Soispha <soispha@vhack.eu> | 2023-04-10 10:55:12 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:30:00 +0200 |
commit | d771ea7b307cf1f65afbb894d0df34443ddcad0c (patch) | |
tree | cc02e0d22a7f6a3d3043b9b419351a51cfa895d4 /system | |
parent | Feat(hm/pkgs): Add anki (diff) | |
download | nixos-config-d771ea7b307cf1f65afbb894d0df34443ddcad0c.tar.gz nixos-config-d771ea7b307cf1f65afbb894d0df34443ddcad0c.zip |
Feat(flake): Activate content-addressed derivations
Diffstat (limited to '')
-rw-r--r-- | system/services/nix/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/system/services/nix/default.nix b/system/services/nix/default.nix index 28fc251f..946ba56c 100644 --- a/system/services/nix/default.nix +++ b/system/services/nix/default.nix @@ -8,10 +8,7 @@ ... }: { nix = { - # Flakes settings - package = pkgs.nixVersions.stable; - # this can't be in nix settings because of some "type error". See: - # https://discourse.nixos.org/t/flakes-error-error-attribute-outpath-missing/18044 + package = pkgs.nixUnstable; registry = { nixpkgs.flake = nixpkgs; @@ -26,8 +23,11 @@ }; settings = { auto-optimise-store = true; - experimental-features = ["nix-command" "flakes"]; - fallback = true; + experimental-features = ["nix-command" "flakes" "ca-derivations"]; + + substituters = "https://cache.ngi0.nixos.org/"; + trusted-public-keys = "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA="; + fallback = true; # TODO what does this do? keep-failed = true; #keep failed tmp build dirs pure-eval = true; # restrict file system and network access to hash |