nixos-config/config/desktop-secrets.nix

25 lines
468 B
Nix

_: let
mkSopsSecret = {
name,
path,
}: {
name = "desktop/${name}";
value = {
sopsFile = ../secrets/desktop.yaml;
owner = "darkkirb";
key = name;
path = "/home/darkkirb/${path}";
};
};
in {
sops.secrets = builtins.listToAttrs (map mkSopsSecret [
{
name = "aws/credentials";
path = ".aws/credentials";
}
{
name = ".config/gh/hosts.yml";
path = ".config/gh/hosts.yml";
}
]);
}