fix: determinate nix + nix darwin
This commit is contained in:
parent
56921235b3
commit
bf9e3a044b
@ -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";
|
||||
};
|
||||
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user