configuration.nix/common/secrets.nix
2024-06-28 00:03:26 +05:30

24 lines
608 B
Nix

{ config, ... }: {
sops = {
defaultSopsFile = ../secrets.yaml;
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;
};
"wireguard/psk" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
};
};
}