diff options
author | Tim Keller <tjkeller.xyz> | 2025-01-09 10:45:41 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-01-09 10:45:41 -0600 |
commit | 7a9236c929a34e92effbb98a6fd0e8d182698698 (patch) | |
tree | ace5fe93a5baa23ccff5df6547e140536ef2b3b4 /modules/root/normaluser.nix | |
parent | 7f7b84548461de85cb1e9b464c6bf8c69fa772a4 (diff) | |
download | nixos-7a9236c929a34e92effbb98a6fd0e8d182698698.tar.xz nixos-7a9236c929a34e92effbb98a6fd0e8d182698698.zip |
set user and root passwords from secret
Diffstat (limited to 'modules/root/normaluser.nix')
-rw-r--r-- | modules/root/normaluser.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/root/normaluser.nix b/modules/root/normaluser.nix index 97e0a14..fc243ea 100644 --- a/modules/root/normaluser.nix +++ b/modules/root/normaluser.nix @@ -1,8 +1,12 @@ -{ userDetails, ... }: { +{ config, userDetails, ... }: { + users.users.root = { + hashedPasswordFile = config.sops.secrets.hashed-root-password.path; + }; users.users.${userDetails.username} = { description = userDetails.fullname; #home = userDetails.home.root; isNormalUser = true; + hashedPasswordFile = config.sops.secrets.hashed-root-password.path; extraGroups = [ "wheel" "nixbld" ]; }; } |