summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-10-25 15:11:55 +0200
committerAlex Auvolat <alex@adnab.me>2023-10-25 15:11:55 +0200
commit3a8456713f5120508706daf280b93cee5d04f324 (patch)
tree3dd876fece5552be5b340eaf0e656ee91020b501 /nixos
parent7fe0b1aaca0ecd20b7e867f89a97e7e0668c87de (diff)
downloaduser-config-3a8456713f5120508706daf280b93cee5d04f324.tar.gz
user-config-3a8456713f5120508706daf280b93cee5d04f324.zip
lindy: enable zram, persist ssh host keys
Diffstat (limited to 'nixos')
-rw-r--r--nixos/lindy.nix8
1 files changed, 8 insertions, 0 deletions
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" ];