summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-12 23:08:56 -0500
committerseth <[email protected]>2023-12-12 23:08:56 -0500
commit163daad93da692fc280036b80f29ca9b65c005d4 (patch)
tree4769d3b0a71f033d802155553a37286164528332 /modules
parent56b051278e722b96e47c92f3789283cfe3b08400 (diff)
flake: update nixpkgs-stable to 23.11
Diffstat (limited to 'modules')
-rw-r--r--modules/nixos/base.nix11
1 files changed, 2 insertions, 9 deletions
diff --git a/modules/nixos/base.nix b/modules/nixos/base.nix
index 361829a..83212fe 100644
--- a/modules/nixos/base.nix
+++ b/modules/nixos/base.nix
@@ -79,18 +79,11 @@ in {
defaultUserShell = pkgs.bash;
mutableUsers = false;
- users.root = let
- # yes this is a bad way to detect which option should be used (or exists)
- # but i'm lazy. please do not copy this
- passwordFile =
- if lib.versionAtLeast config.system.stateVersion "23.11"
- then "hashedPasswordFile"
- else "passwordFile";
- in {
+ users.root = {
home = mkDefault "/root";
uid = mkDefault config.ids.uids.root;
group = mkDefault "root";
- "${passwordFile}" = mkDefault config.age.secrets.rootPassword.path;
+ hashedPasswordFile = mkDefault config.age.secrets.rootPassword.path;
};
};
}