about summary refs log tree commit diff
path: root/hardware
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-08 22:03:02 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-08 22:03:02 +0200
commit5a37cd1acbf722c037b58e26b62ad8cd80ca4a7a (patch)
treebc257deaded637d5ec5e871dacc5d37dff4ecaa6 /hardware
parentHosts: Enable local dns server using unbound (diff)
downloadnixos-config-5a37cd1acbf722c037b58e26b62ad8cd80ca4a7a.tar.gz
nixos-config-5a37cd1acbf722c037b58e26b62ad8cd80ca4a7a.tar.bz2
nixos-config-5a37cd1acbf722c037b58e26b62ad8cd80ca4a7a.zip
Hardware: Disks: Persist ssh host key files
Diffstat (limited to 'hardware')
-rw-r--r--hardware/chromebook/disks.nix4
-rw-r--r--hardware/laptop/disks.nix4
-rw-r--r--hardware/virtualbox/disks.nix4
3 files changed, 12 insertions, 0 deletions
diff --git a/hardware/chromebook/disks.nix b/hardware/chromebook/disks.nix
index 865fd4d..705b392 100644
--- a/hardware/chromebook/disks.nix
+++ b/hardware/chromebook/disks.nix
@@ -64,6 +64,10 @@ in
       files = [
         "/etc/machine-id"
         "/etc/nix/id_rsa"
+        "/etc/ssh/ssh_host_rsa_key"
+        "/etc/ssh/ssh_host_rsa_key.pub"
+        "/etc/ssh/ssh_host_ed25519_key"
+        "/etc/ssh/ssh_host_ed25519_key.pub"
       ];
     };
 
diff --git a/hardware/laptop/disks.nix b/hardware/laptop/disks.nix
index 4131912..fcae4b9 100644
--- a/hardware/laptop/disks.nix
+++ b/hardware/laptop/disks.nix
@@ -56,6 +56,10 @@ in
       files = [
         "/etc/machine-id"
         "/etc/nix/id_rsa"
+        "/etc/ssh/ssh_host_rsa_key"
+        "/etc/ssh/ssh_host_rsa_key.pub"
+        "/etc/ssh/ssh_host_ed25519_key"
+        "/etc/ssh/ssh_host_ed25519_key.pub"
       ];
     };
 
diff --git a/hardware/virtualbox/disks.nix b/hardware/virtualbox/disks.nix
index ef06d20..43097b5 100644
--- a/hardware/virtualbox/disks.nix
+++ b/hardware/virtualbox/disks.nix
@@ -56,6 +56,10 @@ in
       files = [
         "/etc/machine-id"
         "/etc/nix/id_rsa"
+        "/etc/ssh/ssh_host_rsa_key"
+        "/etc/ssh/ssh_host_rsa_key.pub"
+        "/etc/ssh/ssh_host_ed25519_key"
+        "/etc/ssh/ssh_host_ed25519_key.pub"
       ];
     };