22 lines
382 B
Nix
22 lines
382 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";
|
|
}
|
|
]);
|
|
}
|