about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2015-12-08 16:46:57 +0000
committerzimbatm <zimbatm@zimbatm.com>2015-12-08 16:47:56 +0000
commitc515be46510b02d541ef8b1e978227fcf0367deb (patch)
treef590189493be92ffeb6f34ca7309ee730e2bb41b /nixos/modules
parentc3be340ae0b63dbd167dfe998d17944b7dd2d1ed (diff)
downloadnixlib-c515be46510b02d541ef8b1e978227fcf0367deb.tar
nixlib-c515be46510b02d541ef8b1e978227fcf0367deb.tar.gz
nixlib-c515be46510b02d541ef8b1e978227fcf0367deb.tar.bz2
nixlib-c515be46510b02d541ef8b1e978227fcf0367deb.tar.lz
nixlib-c515be46510b02d541ef8b1e978227fcf0367deb.tar.xz
nixlib-c515be46510b02d541ef8b1e978227fcf0367deb.tar.zst
nixlib-c515be46510b02d541ef8b1e978227fcf0367deb.zip
networkmanager: set uid/gid for the networkmanager openvpn agent
Fixes #11317
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/misc/ids.nix2
-rw-r--r--nixos/modules/services/networking/networkmanager.nix2
2 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix
index 6ff95605d4b2..7a7ed2f4408c 100644
--- a/nixos/modules/misc/ids.nix
+++ b/nixos/modules/misc/ids.nix
@@ -238,6 +238,7 @@
       heapster = 214;
       bepasty = 215;
       pumpio = 216;
+      nm-openvpn = 217;
 
       # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
 
@@ -453,6 +454,7 @@
       calibre-server = 213;
       bepasty = 215;
       pumpio = 216;
+      nm-openvpn = 217;
 
       # When adding a gid, make sure it doesn't match an existing
       # uid. Users and groups with the same name should have equal
diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix
index 7df194fa419b..8ab4cfcc114a 100644
--- a/nixos/modules/services/networking/networkmanager.nix
+++ b/nixos/modules/services/networking/networkmanager.nix
@@ -223,9 +223,11 @@ in {
     }
     {
       name = "nm-openvpn";
+      gid = config.ids.gids.nm-openvpn;
     }];
     users.extraUsers = [{
       name = "nm-openvpn";
+      uid = config.ids.uids.nm-openvpn;
     }];
 
     systemd.packages = cfg.packages;