From 4052e2795080d4ce72e64aec4e7b6eb8d823946e Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 10 Mar 2023 21:34:29 -0500 Subject: use agenix for passwords --- hosts/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'hosts/default.nix') diff --git a/hosts/default.nix b/hosts/default.nix index 8aff79e..8aa7324 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -5,8 +5,21 @@ with inputs; let stateVersion = "23.05"; pkgs = nixpkgsUnstable; modules = with inputs; [ + agenix.nixosModules.default home-manager.nixosModules.home-manager nur.nixosModules.nur + { + services.openssh = { + enable = true; + }; + age = { + identityPaths = ["/etc/ssh/ssh_host_ed25519_key"]; + secrets = { + rootPassword.file = ../secrets/rootPassword.age; + sethPassword.file = ../secrets/sethPassword.age; + }; + }; + } ]; }; in { -- cgit v1.2.3