home-manager/common: Fix Nix cache config for users
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 18m32s
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 18m32s
This commit is contained in:
parent
3bc8befb7d
commit
4624480c8b
@ -47,9 +47,14 @@ in
|
|||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = mkIf (!(versionAtLeast config.home.stateVersion "22.11")) pkgs.nix;
|
package = mkIf (!(versionAtLeast config.home.stateVersion "22.11")) pkgs.nix;
|
||||||
settings = {
|
settings = with lib.my.c.nix; {
|
||||||
experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
|
experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
|
||||||
max-jobs = mkDefault "auto";
|
max-jobs = mkDefault "auto";
|
||||||
|
|
||||||
|
extra-substituters = cache.substituters;
|
||||||
|
extra-trusted-public-keys = cache.keys;
|
||||||
|
connect-timeout = 5;
|
||||||
|
fallback = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -235,12 +240,6 @@ in
|
|||||||
exact = true;
|
exact = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
settings = with lib.my.c.nix; {
|
|
||||||
extra-substituters = cache.substituters;
|
|
||||||
extra-trusted-public-keys = cache.keys;
|
|
||||||
connect-timeout = 5;
|
|
||||||
fallback = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(mkIf config.my.isStandalone {
|
(mkIf config.my.isStandalone {
|
||||||
|
Loading…
Reference in New Issue
Block a user