From 7a9236c929a34e92effbb98a6fd0e8d182698698 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 9 Jan 2025 10:45:41 -0600 Subject: set user and root passwords from secret --- modules/root/normaluser.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/root/normaluser.nix') 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" ]; }; } -- cgit v1.2.3