From 56591683b7c5ed56f0a58ac04e4baca5aa815533 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 18 Jan 2026 19:08:11 +0100 Subject: module/networking: Add fixed {u,g}ids for `wpa_supplicant` --- modules/by-name/co/constants/module.nix | 2 ++ 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; + }; }; }) ]); -- cgit 1.4.1