nixos-config/config/desktop-secrets.nix

31 lines
580 B
Nix
Raw Normal View History

2022-05-11 18:34:55 +00:00
{ ... }:
let mkSopsSecret =
{ name
, path
}: {
name = "desktop/${name}";
value = {
sopsFile = ../secrets/desktop.yaml;
owner = "darkkirb";
key = name;
path = "/home/darkkirb/${path}";
};
};
in
{
2022-05-12 06:13:39 +00:00
sops.secrets = builtins.listToAttrs (map mkSopsSecret [
2022-05-11 18:34:55 +00:00
{
name = "aws/credentials";
path = ".aws/credentials";
}
2022-05-13 20:47:21 +00:00
{
name = ".config/gh/hosts.yml";
path = ".config/gh/hosts.yml";
}
{
name = ".config/github-copilot/hosts.json";
path = ".config/github-copilot/hosts.json";
}
2022-05-11 18:34:55 +00:00
]);
}