fix: determinate nix + nix darwin

This commit is contained in:
2025-11-08 11:32:50 -05:00
parent 56921235b3
commit bf9e3a044b
2 changed files with 9 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ in
{
options.${namespace}.nix = {
enable = mkBoolOpt true "Whether or not to manage nix configuration.";
usingDeterminate = mkBoolOpt false "Whether we're using determinate nix";
package = mkOpt types.package pkgs.nixVersions.latest "Which nix package to use.";
};
@@ -48,11 +49,11 @@ in
checkConfig = true;
distributedBuilds = true;
optimise.automatic = true;
optimise.automatic = !cfg.usingDeterminate;
registry = lib.mkForce mappedRegistry;
gc = {
automatic = true;
automatic = !cfg.usingDeterminate;
options = "--delete-older-than 7d";
};