mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
network: rework wpa supplicant
This commit is contained in:
parent
f8561e3246
commit
076a7cacfe
4 changed files with 90 additions and 85 deletions
|
@ -20,7 +20,6 @@
|
|||
"soft-reboot.target"
|
||||
"systemd-soft-reboot.service"
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot = {
|
||||
kernelModules = [ "v4l2loopback" ];
|
||||
|
@ -107,7 +106,7 @@
|
|||
|
||||
|
||||
services = {
|
||||
# envfs.enable = true; #usr/bin fixes
|
||||
envfs.enable = true; #usr/bin fixes
|
||||
blueman.enable = true; # bluetooth
|
||||
devmon.enable = true; # automount stuff
|
||||
upower.enable = true;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
"2620:fe::9"
|
||||
];
|
||||
# allow downgrade since fritzbox at home doesn't support it (yet?)
|
||||
dnssec = "allow-downgrade";
|
||||
# dnssec = "allow-downgrade";
|
||||
};
|
||||
networking = {
|
||||
nftables.enable = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
age.secrets = {
|
||||
tud.file = ../../../../secrets/thinkpad/tud.age;
|
||||
|
@ -8,15 +8,12 @@
|
|||
};
|
||||
};
|
||||
networking = {
|
||||
supplicant = rec {
|
||||
enp0s31f6 = {
|
||||
supplicant = {
|
||||
"LAN" = {
|
||||
userControlled.enable = true;
|
||||
driver = "wired";
|
||||
configFile.path = config.age.secrets.dyport-auth.path;
|
||||
};
|
||||
# ugly way to add more interfaces
|
||||
# "enp0s13f0u2u1" = enp0s31f6;
|
||||
# "enp0s13f0u3u1" = enp0s31f6;
|
||||
};
|
||||
wireless.networks = {
|
||||
eduroam = {
|
||||
|
@ -143,5 +140,9 @@
|
|||
LockPersonality = true;
|
||||
};
|
||||
};
|
||||
# fix systemd dependencies for supplicant services
|
||||
"supplicant-lan@" = {
|
||||
wantedBy = lib.mkForce [ ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue