23 lines
408 B
Nix
23 lines
408 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."desktop/aws/credentials" = builtins.listToAttrs (map mkSopsSecret [
|
||
|
{
|
||
|
name = "aws/credentials";
|
||
|
path = ".aws/credentials";
|
||
|
}
|
||
|
]);
|
||
|
}
|