summaryrefslogtreecommitdiff
path: root/hosts/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-10 21:34:29 -0500
committerseth <[email protected]>2023-03-10 21:34:29 -0500
commit4052e2795080d4ce72e64aec4e7b6eb8d823946e (patch)
treed6a70e299a5266ee0085f750317043424e18414a /hosts/default.nix
parent8a7757fded4269a759dcf5fc4ce8e1013c557d5d (diff)
use agenix for passwords
Diffstat (limited to 'hosts/default.nix')
-rw-r--r--hosts/default.nix13
1 files changed, 13 insertions, 0 deletions
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 {