2024-05-12 19:58:55 +01:00
|
|
|
{ inputs, config, ... }:
|
|
|
|
let
|
2024-05-13 22:17:40 +01:00
|
|
|
secretsFile = ../../../secrets.yaml;
|
2024-05-12 19:58:55 +01:00
|
|
|
homeDirectory = config.home.homeDirectory;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
|
|
];
|
|
|
|
|
|
|
|
sops = {
|
|
|
|
age.keyFile = "${homeDirectory}/.config/sops/age/keys.txt";
|
|
|
|
|
|
|
|
defaultSopsFile = "${secretsFile}";
|
|
|
|
validateSopsFiles = false;
|
|
|
|
|
|
|
|
secrets = {
|
2024-05-12 20:45:37 +01:00
|
|
|
"ssh_keys/sam/private" = {
|
|
|
|
path = "${homeDirectory}/.ssh/openssh_key";
|
|
|
|
};
|
|
|
|
"ssh_keys/sam/public" = {
|
|
|
|
path = "${homeDirectory}/.ssh/openssh_key.pub";
|
2024-05-12 19:58:55 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|