diff options
author | 2025-09-07 13:21:11 +0200 | |
---|---|---|
committer | 2025-09-07 13:21:11 +0200 | |
commit | 3e4da4404a1b1eca40f7fbdd566800936456ac03 (patch) | |
tree | 6145b084e9cead11d4a8b6cd85e3a8832b8db409 | |
parent | d2d1417d82ada9c4dbb274a4e5b1804aee184860 (diff) |
refactor user secret implementation
-rw-r--r-- | modules/userSecret.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/modules/userSecret.nix b/modules/userSecret.nix index af1e978..b47cc95 100644 --- a/modules/userSecret.nix +++ b/modules/userSecret.nix @@ -10,11 +10,15 @@ }; config = { # TODO other users than root - users.users.root.passwordFile = lib.mkIf (config.users.users.root.passwordSecret != null) config.users.users.root.passwordSecret.output.path; - users.users.root.passwordSecret.input = lib.mkIf (config.users.users.root.passwordSecret != null) { - owner = "root"; - group = "root"; - mode = "0400"; - }; + users.users.root.passwordFile = + lib.mkIf (config.users.users.root.passwordSecret != null) + config.users.users.root.passwordSecret.output.path; + + users.users.root.passwordSecret.input = + lib.mkIf (config.users.users.root.passwordSecret != null) { + owner = "root"; + group = "root"; + mode = "0400"; + }; }; } |