mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 20:30:05 +00:00
✨ Finish sops-nix configuration, update README and more
This commit is contained in:
parent
6dc0e02a92
commit
d7a1a9ffbd
12 changed files with 111 additions and 17 deletions
|
@ -21,6 +21,7 @@
|
|||
isSystemUser = self.lib.mkBool false "Whether this user is considered a system user.";
|
||||
initialPassword = self.lib.mkOpt (types.nullOr types.str) null "Plaintext insecure initial user password, only recommended for testing.";
|
||||
password = self.lib.mkOpt (types.nullOr types.str) null "Plaintext insecure user password, only recommended for testing.";
|
||||
hashedPasswordFile = self.lib.mkOpt (types.nullOr types.str) null "Secure, hashed user password stored in a separate file, recommended for production.";
|
||||
extraGroups = self.lib.mkOpt (types.listOf types.str) [] "List of additional groups this user belongs to.";
|
||||
};
|
||||
};
|
||||
|
@ -48,6 +49,7 @@ in {
|
|||
users.users = lib.mapAttrs (username: userConfig:
|
||||
mkIf userConfig.enable {
|
||||
name = username;
|
||||
hashedPasswordFile = userConfig.hashedPasswordFile;
|
||||
inherit (userConfig) isNormalUser isSystemUser initialPassword password extraGroups;
|
||||
})
|
||||
cfg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue