[shared] Sops nix for user passwords

This commit is contained in:
2025-04-17 00:31:19 +02:00
parent 8244fe8927
commit 01e5fb42d3
9 changed files with 93 additions and 7 deletions

View File

@ -1,5 +1,6 @@
{
imports = [
./sops.nix
./yubikey.nix
];

View 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;
};
}