{ 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.keyFile = "${homeDirectory}/.config/sops/age/keys.txt"; age.sshKeyPaths = ["${homeDirectory}/.ssh/deploy_key-ssh-ed25519" "${homeDirectory}/.ssh/ssh_host_ed25519_key"]; defaultSopsFile = "${secretsFile}"; validateSopsFiles = false; }; }