From 3a8456713f5120508706daf280b93cee5d04f324 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 25 Oct 2023 15:11:55 +0200 Subject: lindy: enable zram, persist ssh host keys --- nixos/lindy.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/lindy.nix b/nixos/lindy.nix index dbb5cb7..d168db8 100644 --- a/nixos/lindy.nix +++ b/nixos/lindy.nix @@ -90,6 +90,11 @@ environment.etc."machine-id".source = "/nix/persist/etc/machine-id"; + environment.etc."ssh/ssh_host_rsa_key".source = "/nix/persist/etc/ssh/ssh_host_rsa_key"; + environment.etc."ssh/ssh_host_rsa_key.pub".source = "/nix/persist/etc/ssh/ssh_host_rsa_key.pub"; + environment.etc."ssh/ssh_host_ed25519_key".source = "/nix/persist/etc/ssh/ssh_host_ed25519_key"; + environment.etc."ssh/ssh_host_ed25519_key.pub".source = "/nix/persist/etc/ssh/ssh_host_ed25519_key.pub"; + # ---- zonz (encrypted zfs) ---- environment.etc.crypttab = { @@ -108,6 +113,9 @@ Kogami UUID=61534c91-df18-4c71-9244-54e677f5d4fa /nix/persist/root/kogami_key # ---- + # Zram + zramSwap.enable = true; + # Backup services.cron.enable = true; services.cron.systemCronJobs = [ "0 20 * * * root /media/Zonz/lindy/do-backup.sh" ]; -- cgit v1.2.3