nixos-config/config/desktop-secrets.nix

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