2023-12-17 12:52:40 +01:00
|
|
|
{ inputs, config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
|
|
|
# https://nixos.wiki/wiki/Remote_LUKS_Unlocking
|
|
|
|
# Unlock command:
|
|
|
|
# ssh root@<Local_IP_Address> "Password"
|
|
|
|
|
|
|
|
boot.kernelParams = [ "ip=dhcp" ];
|
|
|
|
|
|
|
|
boot.initrd = {
|
|
|
|
enable = true;
|
|
|
|
systemd.users.root.shell = "/bin/systemd-tty-ask-password-agent";
|
|
|
|
availableKernelModules = [ "cdc_ncm" ];
|
|
|
|
network.enable = true;
|
|
|
|
network.ssh = {
|
|
|
|
enable = true;
|
|
|
|
port = 22;
|
|
|
|
authorizedKeys = [
|
2023-12-28 12:06:15 +01:00
|
|
|
# albert@nixos-vm-01
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFnjCBEWaHzD1OVwT0rtwh91Hb4iAdgkYnE4MKKANgE0 albert@nixos-vm-01''
|
|
|
|
# (Thu Dec 28 19:30:06 JST 2023) albert@framework-server
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAODamRCvyVOGmMSMXWdUzjcM2GsApizCvXEWKHiKhGk albert@framework-server''
|
|
|
|
# (Thu Dec 28 19:34:47 JST 2023) albert@osaka-linode-01
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEsl8Z0jXAboCBdAtWDkssHI3M3lHSPaM4uUgxzBJI41 albert@osaka-linode-01''
|
|
|
|
# (Fri Dec 15 09:34:02 AM UTC 2023) forgejo-runner
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJJE7z4JlohTe2TfB5ovsDWMT+M+V9AyQ6dXNelX6oGU forgejo-runner''
|
2023-12-17 12:52:40 +01:00
|
|
|
# (Fri Dec 15 09:34:02 AM UTC 2023) albert@piaware-rpi4
|
2023-12-28 12:06:15 +01:00
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINR8PCfKOTArLemqmnHom4vWJ6u8wrlpG6/gSqeYo/qD albert@piaware-rpi4''
|
2023-12-17 12:52:40 +01:00
|
|
|
# (Fri Dec 15 11:40:53 AM UTC 2023) albert@backups-rpi4
|
2023-12-28 12:06:15 +01:00
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNkKoS32K487JaFza9TUFwrjwe9P7SNIHbVNxhzmRcI albert@backups-rpi4''
|
|
|
|
# (Tue Dec 26 10:33:58 AM UTC 2023) abc@rdesktop
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKa86iTPkRDwga4/T3XdyWfu5xH8oL/AWWWozz3rUyuA abc@rdesktop''
|
|
|
|
# (Thu Dec 28 10:56:22 AM UTC 2023) pixel-5
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP7HMCutPvexUsbjAzpd0ZOsmVtg80MOaGnCOv+I3UBf pixel-5''
|
2023-12-31 14:51:01 +01:00
|
|
|
# (Sun Dec 31 10:35:10 PM JST 2023) albert@nixos-desktop
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByqVpUx8mw0bs+q04xL5+UC7Mwqu9nKVFIsxTi2nWti albert@nixos-desktop''
|
2024-01-03 15:38:42 +01:00
|
|
|
# (Wed Jan 3 07:14:24 PM JST 2024) albert@nixos-framework
|
|
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDNDXWvXbSG/AJfA+pXSqO5MKm3lDL/sIxIiZI7DZxs5 albert@nixos-framework''
|
2023-12-17 12:52:40 +01:00
|
|
|
];
|
|
|
|
hostKeys = [
|
|
|
|
# Generate new keys with:
|
|
|
|
# ssh-keygen -t rsa -N "" -f /boot/ssh_host_rsa_key
|
|
|
|
"/boot/ssh_host_rsa_key"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|