feat: enable initrd ssh unlock for all machines

This commit is contained in:
oddlama 2023-04-24 18:41:05 +02:00
parent c26b5d3c89
commit 05ce0e6f5c
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 11 additions and 0 deletions

View file

@ -15,6 +15,7 @@
../common/hardware/intel.nix ../common/hardware/intel.nix
../common/efi.nix ../common/efi.nix
../common/initrd-ssh.nix
../common/laptop.nix ../common/laptop.nix
../common/sound.nix ../common/sound.nix
../common/yubikey.nix ../common/yubikey.nix

View file

@ -4,6 +4,11 @@
wireless.iwd.enable = true; wireless.iwd.enable = true;
}; };
boot.initrd.systemd.network = {
enable = true;
networks = {inherit (config.systemd.network.networks) "10-lan1";};
};
systemd.network.networks = { systemd.network.networks = {
"10-lan1" = { "10-lan1" = {
DHCP = "yes"; DHCP = "yes";

View file

@ -11,6 +11,11 @@
in { in {
networking.hostId = nodeSecrets.networking.hostId; networking.hostId = nodeSecrets.networking.hostId;
boot.initrd.systemd.network = {
enable = true;
networks = {inherit (config.systemd.network.networks) "10-lan1";};
};
systemd.network.networks = { systemd.network.networks = {
"10-lan1" = { "10-lan1" = {
DHCP = "yes"; DHCP = "yes";