From d771ea7b307cf1f65afbb894d0df34443ddcad0c Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 10 Apr 2023 10:55:12 +0200 Subject: Feat(flake): Activate content-addressed derivations --- system/services/nix/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'system') 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 -- cgit 1.4.1