Initial commit
This commit is contained in:
14
modules/features/sops-password.nix
Normal file
14
modules/features/sops-password.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ den, ... }:
|
||||
{
|
||||
lux.sops-password = den.lib.perUser (
|
||||
{ user, ... }:
|
||||
{
|
||||
nixos =
|
||||
{ config, ... }:
|
||||
{
|
||||
sops.secrets."hashed-password-${user.userName}".neededForUsers = true;
|
||||
users.users.${user.userName}.hashedPasswordFile = config.sops.secrets."hashed-password-${user.userName}".path;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user