28 lines
623 B
Nix
28 lines
623 B
Nix
{ inputs, config, ... }:
|
|
let
|
|
secretsDirectory = builtins.toString inputs.nix-secrets;
|
|
secretsFile = "${secretsDirectory}/secrets.yaml";
|
|
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 = {
|
|
"ssh_keys/sam/private" = {
|
|
path = "${homeDirectory}/.ssh/openssh_key";
|
|
};
|
|
"ssh_keys/sam/public" = {
|
|
path = "${homeDirectory}/.ssh/openssh_key.pub";
|
|
};
|
|
};
|
|
};
|
|
}
|