configuration.nix/common/sops.nix

24 lines
600 B
Nix
Raw Normal View History

{ config, ... }: {
sops = {
2024-06-20 00:25:27 +05:30
defaultSopsFile = ../secrets.yaml;
age = {
keyFile = "/persist/sops/age/keys.txt";
sshKeyPaths = [ "/persist/system/etc/ssh/keys/ssh_host_ed25519_key" ];
};
secrets = {
"passwd/root" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
neededForUsers = true;
};
"passwd/adtya" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
neededForUsers = true;
};
};
};
}