configuration.nix/common/sops.nix
Adithya Nair dcb5d76ff0
cleanup secrets
move secrets out of the repo

move secrets

cleanup secrets
2024-06-16 22:32:48 +05:30

23 lines
599 B
Nix

{ config, ... }: {
sops = {
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;
};
};
};
}