This commit is contained in:
albert 2025-02-17 21:18:37 -08:00
parent 812d5f7e14
commit f2a0228913
Signed by: albert
GPG key ID: 3895DD267CA11BA9
3 changed files with 1 additions and 25 deletions
nixos
common/modules
hosts/framework-server

View file

@ -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";
};
};
};
}

View file

@ -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;

View file

@ -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