2022-06-12 15:39:15 +00:00
|
|
|
{...}: let
|
|
|
|
mkSopsSecret = {
|
|
|
|
name,
|
|
|
|
path,
|
2022-05-11 18:34:55 +00:00
|
|
|
}: {
|
|
|
|
name = "desktop/${name}";
|
|
|
|
value = {
|
|
|
|
sopsFile = ../secrets/desktop.yaml;
|
|
|
|
owner = "darkkirb";
|
|
|
|
key = name;
|
|
|
|
path = "/home/darkkirb/${path}";
|
|
|
|
};
|
|
|
|
};
|
2022-06-12 15:39:15 +00:00
|
|
|
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
|
|
|
]);
|
|
|
|
}
|