nix/sini: fix initrd config
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jul 2024 12:29:27 +0300
1 files changed,
10 insertions(+),
4 deletions(-)
jump to
M
hosts/sini/configuration.nix
→
hosts/sini/configuration.nix
@@ -28,7 +28,17 @@ # prevent WPA supplicant from requiring `sysinit.target`.
services."wpa_supplicant@".unitConfig.DefaultDependencies = false; users.root.shell = "/bin/systemd-tty-ask-password-agent"; + network = { + enable = true; + networks."wifi" = { + enable = true; + DHCP = "yes"; + name = interface; + }; + }; + }; + network = { enable = true; ssh = {@@ -36,10 +46,6 @@ enable = true;
port = 22; authorizedKeys = [ "ssh-rsa AAAAyourpublic-key-here..." ]; hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" ]; - }; - networks = { - matchConfig.Name = interface; - networkConfig.DHCP = "yes"; }; }; };