Update
This commit is contained in:
parent
812d5f7e14
commit
f2a0228913
3 changed files with 1 additions and 25 deletions
nixos
|
@ -1,20 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
boot.initrd = let interface = "wlp170s0"; in {
|
||||
systemd = {
|
||||
enable = true;
|
||||
|
||||
packages = [ pkgs.wpa_supplicant ];
|
||||
initrdBin = [ pkgs.wpa_supplicant ];
|
||||
targets.initrd.wants = [ "wpa_supplicant@${interface}.service" ];
|
||||
|
||||
# prevent WPA supplicant from requiring `sysinit.target`.
|
||||
services."wpa_supplicant@".unitConfig.DefaultDependencies = false;
|
||||
|
||||
network.enable = true;
|
||||
network.networks."10-wlan" = {
|
||||
matchConfig.Name = interface;
|
||||
networkConfig.DHCP = "yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,16 +1,13 @@
|
|||
{ lib, ... }: {
|
||||
{ ... }: {
|
||||
# https://nixos.wiki/wiki/Remote_LUKS_Unlocking
|
||||
# Unlock command:
|
||||
# ssh root@<Local_IP_Address> "Password"
|
||||
|
||||
boot.initrd = {
|
||||
enable = true;
|
||||
systemd.users.root.shell = "/bin/systemd-tty-ask-password-agent";
|
||||
availableKernelModules = [
|
||||
"cdc_ncm" # frameworks
|
||||
"e1000e" # nuc-server
|
||||
"iwlwifi" # Add WiFi driver modules for your hardware
|
||||
"cfg80211" # Wireless configuration API
|
||||
];
|
||||
|
||||
network.enable = true;
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
../../common/modules/builder.nix
|
||||
../../common/services/fwupd.nix
|
||||
../../common/modules/ssh-luks.nix
|
||||
../../common/modules/ssh-luks-wifi.nix
|
||||
../../common/services/docker.nix
|
||||
../../common/services/tailscale-autoconnect.nix
|
||||
../../common/services/forgejo-runner.nix
|
||||
|
|
Loading…
Add table
Reference in a new issue