From a0e13034700e6a697c1adac3050702a1d3ba0ecd Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 11 Jan 2024 14:39:13 +0900 Subject: feat(modules)!: init persistence --- systems/cobalt/default.nix | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'systems') diff --git a/systems/cobalt/default.nix b/systems/cobalt/default.nix index 238cb28..16e7c37 100644 --- a/systems/cobalt/default.nix +++ b/systems/cobalt/default.nix @@ -133,21 +133,6 @@ in services.openssh.enable = true; services.openssh.settings.PermitRootLogin = "prohibit-password"; - services.openssh.hostKeys = [ - { - path = "/persist/ssh/ssh_host_ed25519_key"; - type = "ed25519"; - } - { - path = "/persist/ssh/ssh_host_rsa_key"; - type = "rsa"; - bits = 4096; - } - ]; - - # impermanence requirement - fileSystems."/persist".neededForBoot = true; - environment.systemPackages = with pkgs; [ bsd-finger ]; @@ -176,6 +161,10 @@ in modules = { sops.enable = true; + persistence = { + enable = true; + storagePath = "/persist"; + }; services.backup = { enable = true; -- cgit 1.4.1