diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-01-18 19:08:11 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-01-18 19:08:11 +0100 |
| commit | 56591683b7c5ed56f0a58ac04e4baca5aa815533 (patch) | |
| tree | 9b1298737ae2a2cf2edc26fbab094aef9d2f035a | |
| parent | update.sh: Don't refer to `build.sh` by path (diff) | |
| download | nixos-config-56591683b7c5ed56f0a58ac04e4baca5aa815533.zip | |
module/networking: Add fixed {u,g}ids for `wpa_supplicant`
| -rw-r--r-- | modules/by-name/co/constants/module.nix | 2 | ||||
| -rw-r--r-- | modules/by-name/ne/networking/module.nix | 17 |
2 files changed, 13 insertions, 6 deletions
diff --git a/modules/by-name/co/constants/module.nix b/modules/by-name/co/constants/module.nix index 5711e9cf..493ead1f 100644 --- a/modules/by-name/co/constants/module.nix +++ b/modules/by-name/co/constants/module.nix @@ -22,6 +22,7 @@ ids.uids = { # Keep this sorted with `!sort --numeric-sort --key=2 --field-separator="="` + wpa_supplicant = 986; dhcpcd = 992; systemd-oom = 993; sshd = 994; @@ -37,6 +38,7 @@ # Please add your groups to the users and inherit them here. # This avoids having an user/group id mismatch. + wpa_supplicant = 986; dhcpcd = 987; lpadmin = 988; resolvconf = 989; diff --git a/modules/by-name/ne/networking/module.nix b/modules/by-name/ne/networking/module.nix index ea080ea4..075a1a5a 100644 --- a/modules/by-name/ne/networking/module.nix +++ b/modules/by-name/ne/networking/module.nix @@ -99,12 +99,17 @@ in { soispha.impermanence.directories = [ "/etc/NetworkManager" ]; - - users.users = { - "${cfg.userName}".extraGroups = [ - "networkmanager" # allows to configure NetworkManager as this user - ]; - nm-iodine.uid = config.soispha.constants.ids.uids.nm-iodine; + users = { + users = { + "${cfg.userName}".extraGroups = [ + "networkmanager" # allows to configure NetworkManager as this user + ]; + nm-iodine.uid = config.soispha.constants.ids.uids.nm-iodine; + wpa_supplicant.uid = config.soispha.constants.ids.uids.wpa_supplicant; + }; + groups = { + wpa_supplicant.gid = config.soispha.constants.ids.gids.wpa_supplicant; + }; }; }) ]); |
