configuration.nix/common/secrets.nix

39 lines
1.1 KiB
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/skipper" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
"wireguard/psk/rico0" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
"wireguard/psk/rico1" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
"wireguard/psk/rico2" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
};
};
}