45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
|
# home level sops. see hosts/common/optional/sops.nix for hosts level
|
||
|
# TODO should I split secrtets.yaml into a home level and a hosts level or move to a single sops.nix entirely?
|
||
|
|
||
|
{ inputs, ... }:
|
||
|
let
|
||
|
secretspath = builtins.toString inputs.mysecrets;
|
||
|
in
|
||
|
{
|
||
|
imports = [
|
||
|
inputs.sops-nix.homeManagerModules.sops
|
||
|
];
|
||
|
|
||
|
sops = {
|
||
|
# gnupg = {
|
||
|
# home = "/var/lib/sops";
|
||
|
# sshKeyPaths = [ ];
|
||
|
# }
|
||
|
|
||
|
# This is the ta/dev key and needs to have been copied to this location on the host
|
||
|
age.keyFile = "/home/ta/.config/sops/age/keys.txt";
|
||
|
|
||
|
defaultSopsFile = "${secretspath}/secrets.yaml";
|
||
|
# defaultSopsFile = ../../../../hosts/common/secrets.yaml;
|
||
|
validateSopsFiles = false;
|
||
|
|
||
|
secrets = {
|
||
|
"private_keys/maya" = {
|
||
|
path = "/home/ta/.ssh/id_maya";
|
||
|
};
|
||
|
"private_keys/mara" = {
|
||
|
path = "/home/ta/.ssh/id_mara";
|
||
|
};
|
||
|
"private_keys/manu" = {
|
||
|
path = "/home/ta/.ssh/id_manu";
|
||
|
};
|
||
|
"private_keys/mila" = {
|
||
|
path = "/home/ta/.ssh/id_mila";
|
||
|
};
|
||
|
"private_keys/meek" = {
|
||
|
path = "/home/ta/.ssh/id_meek";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|