fix: determinate nix + nix darwin

This commit is contained in:
Evan Reichard 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";
};

View File

@ -1,13 +1,14 @@
{ namespace, lib, ... }:
let
inherit (lib.${namespace}) enabled;
in
{ lib, ... }:
{
system.stateVersion = 6;
nix.enable = false;
# System Config
reichard = {
nix = enabled;
nix = {
enable = true;
usingDeterminate = true;
};
security = {
sops = {