Merge pull request #11956 from zimbatm/nm-openvpn-uid-gid

networkmanager: set uid/gid for the networkmanager openvpn agent

+4
+2
nixos/modules/misc/ids.nix
··· 238 heapster = 214; 239 bepasty = 215; 240 pumpio = 216; 241 242 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399! 243 ··· 453 calibre-server = 213; 454 bepasty = 215; 455 pumpio = 216; 456 457 # When adding a gid, make sure it doesn't match an existing 458 # uid. Users and groups with the same name should have equal
··· 238 heapster = 214; 239 bepasty = 215; 240 pumpio = 216; 241 + nm-openvpn = 217; 242 243 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399! 244 ··· 454 calibre-server = 213; 455 bepasty = 215; 456 pumpio = 216; 457 + nm-openvpn = 217; 458 459 # When adding a gid, make sure it doesn't match an existing 460 # uid. Users and groups with the same name should have equal
+2
nixos/modules/services/networking/networkmanager.nix
··· 223 } 224 { 225 name = "nm-openvpn"; 226 }]; 227 users.extraUsers = [{ 228 name = "nm-openvpn"; 229 }]; 230 231 systemd.packages = cfg.packages;
··· 223 } 224 { 225 name = "nm-openvpn"; 226 + gid = config.ids.gids.nm-openvpn; 227 }]; 228 users.extraUsers = [{ 229 name = "nm-openvpn"; 230 + uid = config.ids.uids.nm-openvpn; 231 }]; 232 233 systemd.packages = cfg.packages;