summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/userSecret.nix16
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";
+ };
};
}