23 lines
607 B
Nix
23 lines
607 B
Nix
{ inputs, config, osConfig, ... }:
|
|
let
|
|
secretsDirectory = builtins.toString inputs.nix-secrets;
|
|
secretsFile = "${secretsDirectory}/secrets.yaml";
|
|
homeDirectory = config.home.homeDirectory;
|
|
username = config.home.username;
|
|
hostname = osConfig.networking.hostName;
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
];
|
|
|
|
sops = {
|
|
age.sshKeyPaths = ["${homeDirectory}/.ssh/id_ed25519"];
|
|
defaultSopsFile = "${secretsFile}";
|
|
validateSopsFiles = false;
|
|
secrets."ssh_keys/deploy_key/id_ed25519" = {
|
|
path = "/home/${username}/.ssh/deploy_key-ssh-ed25519";
|
|
};
|
|
};
|
|
}
|