Compare commits

..

2 Commits

Author SHA1 Message Date
Alexander Heldt
d614186ef9 backwards: Use NetworkManager for wifi 2026-02-15 15:10:48 +01:00
Alexander Heldt
aefe89f648 backwards: Try to fix audio output 2026-02-15 15:10:19 +01:00
2 changed files with 33 additions and 22 deletions

View File

@@ -38,6 +38,10 @@ in
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
extraModprobeConfig = ''
options snd-intel-dspcfg dsp_driver=1
'';
}; };
}; };
} }

View File

@@ -3,33 +3,40 @@
networking = { networking = {
hostName = "backwards"; hostName = "backwards";
networkmanager.enable = false; wireless.enable = false;
#wireless.networks are defined in the secret `wpa_supplicant.conf` networkmanager = {
wireless = {
enable = true; enable = true;
secretsFile = config.age.secrets.wireless-network-secrets.path; wifi.backend = "iwd";
networks = { ensureProfiles = {
"w1-f1_5G" = { environmentFiles = [
pskRaw = "ext:w1-f1_psk"; config.age.secrets.wireless-network-secrets.path
};
};
};
defaultGateway = "192.168.50.1";
nameservers = [ "1.1.1.1" ];
interfaces = {
wlp1s0 = {
useDHCP = false;
ipv4 = {
addresses = [
{
address = "192.168.50.202";
prefixLength = 24;
}
]; ];
profiles = {
w1-f1_5G = {
connection = {
id = "w1-f1_5G";
type = "wifi";
interface-name = "wlp1s0";
};
wifi = {
ssid = "w1-f1_5G";
mode = "infrastructure";
};
wifi-security = {
key-mgmt = "wpa-psk";
psk = "$w1_f1_psk";
};
ipv4 = {
method = "manual";
addresses = "192.168.50.202/24";
gateway = "192.168.50.1";
dns = "1.1.1.1";
};
};
}; };
}; };
}; };