Configure key file for each host, it varies.

This commit is contained in:
2024-07-25 14:11:01 +01:00
parent 9952890751
commit b8871fe7d1
5 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,5 @@
allowDiscards = true; allowDiscards = true;
bypassWorkqueues = true; bypassWorkqueues = true;
keyFileSize = 4096; keyFileSize = 4096;
keyFile = "/dev/sda";
}; };
} }

View File

@@ -7,5 +7,6 @@
]; ];
networking.hostName = "c1"; networking.hostName = "c1";
boot.initrd.luks.devices."luksroot".keyFile = "/dev/sda";
services.tailscaleAutoconnect.authkey = "tskey-auth-kmFvBT3CNTRL-wUbELKSd5yhuuTwTcgJZxhPUTxKgcYKF"; services.tailscaleAutoconnect.authkey = "tskey-auth-kmFvBT3CNTRL-wUbELKSd5yhuuTwTcgJZxhPUTxKgcYKF";
} }

View File

@@ -7,5 +7,6 @@
]; ];
networking.hostName = "c2"; networking.hostName = "c2";
boot.initrd.luks.devices."luksroot".keyFile = "/dev/sda";
services.tailscaleAutoconnect.authkey = "tskey-auth-kbYnZK2CNTRL-SpUVCuzS6P3ApJiDaB6RM3M4b8M9TXgS"; services.tailscaleAutoconnect.authkey = "tskey-auth-kbYnZK2CNTRL-SpUVCuzS6P3ApJiDaB6RM3M4b8M9TXgS";
} }

View File

@@ -7,5 +7,6 @@
]; ];
networking.hostName = "c3"; networking.hostName = "c3";
boot.initrd.luks.devices."luksroot".keyFile = "/dev/sda";
services.tailscaleAutoconnect.authkey = "tskey-auth-kDNknU5CNTRL-iEGHyo8GDZBCVLaMutJjZBHH7wCuCDyFb"; services.tailscaleAutoconnect.authkey = "tskey-auth-kDNknU5CNTRL-iEGHyo8GDZBCVLaMutJjZBHH7wCuCDyFb";
} }

View File

@@ -7,5 +7,6 @@
]; ];
networking.hostName = "zippy"; networking.hostName = "zippy";
boot.initrd.luks.devices."luksroot".keyFile = "/dev/sdb";
services.tailscaleAutoconnect.authkey = "tskey-auth-ktKyQ59f2p11CNTRL-ut8E71dLWPXsVtb92hevNX9RTjmk4owBf"; services.tailscaleAutoconnect.authkey = "tskey-auth-ktKyQ59f2p11CNTRL-ut8E71dLWPXsVtb92hevNX9RTjmk4owBf";
} }