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";
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
}
|