✨ [shared] Sops nix for user passwords
This commit is contained in:
20
shared/modules/security/sops.nix
Normal file
20
shared/modules/security/sops.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
systemConfig,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = lib.custom.relativeToRoot "shared/secrets/secrets.yaml";
|
||||
defaultSopsFormat = "yaml";
|
||||
|
||||
age.keyFile = "/home/${systemConfig.user.name}/.config/sops/age/keys.txt";
|
||||
secrets.password.neededForUsers = true;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user