Personal Nix setup

Move common nix-darwin config to modules/base/nix-config

Changed files
+15 -19
machines
modules
-10
machines/fanta/configuration.nix
···
nvim.enable = true;
};
-
system.stateVersion = 4;
-
# Disable path verification of $NIX_PATH
-
system.checks.verifyNixPath = false;
-
# Auto upgrade nix package and the daemon service.
-
services.nix-daemon.enable = true;
-
# Auto-configure build users
-
nix.configureBuildUsers = true;
-
# Disable documentation until https://github.com/LnL7/nix-darwin/issues/217 is fixed.
-
documentation.enable = false;
-
# Use built-in TouchID PAM
security.pam.enableSudoTouchIdAuth = true;
···
nvim.enable = true;
};
# Use built-in TouchID PAM
security.pam.enableSudoTouchIdAuth = true;
+5 -9
machines/sprite/configuration.nix
···
{
imports = [ ];
-
system.stateVersion = 4;
-
# Disable path verification of $NIX_PATH
-
system.checks.verifyNixPath = false;
-
# Auto upgrade nix package and the daemon service.
-
services.nix-daemon.enable = true;
-
# Auto-configure build users
-
nix.configureBuildUsers = true;
-
# Disable documentation until https://github.com/LnL7/nix-darwin/issues/217 is fixed.
-
documentation.enable = false;
# Use built-in TouchID PAM
security.pam.enableSudoTouchIdAuth = true;
···
{
imports = [ ];
+
modules = {
+
fonts.enable = true;
+
development.enable = true;
+
nvim.enable = true;
+
};
# Use built-in TouchID PAM
security.pam.enableSudoTouchIdAuth = true;
+10
modules/base/nix-config.nix
···
!include ${config.age.secrets."nix-access-tokens.conf".path}
'';
};
}
···
!include ${config.age.secrets."nix-access-tokens.conf".path}
'';
};
+
} // helpers.darwinAttrs {
+
system.stateVersion = 4;
+
# Disable path verification of $NIX_PATH
+
system.checks.verifyNixPath = false;
+
# Auto upgrade nix package and the daemon service.
+
services.nix-daemon.enable = true;
+
# Auto-configure build users
+
nix.configureBuildUsers = true;
+
# Disable documentation until https://github.com/LnL7/nix-darwin/issues/217 is fixed.
+
documentation.enable = false;
}