summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Wolf <ericwolf42@gmail.com>2018-08-15 22:10:31 +0200
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-08-25 05:18:53 +0300
commit7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76 (patch)
tree06c3eb61c2a5f990c9a7a074153b33ea0d6fa7e2
parent24cb9ddfc04e9f2056bd92235a92f0e55657e2fe (diff)
downloadnixlib-7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76.tar
nixlib-7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76.tar.gz
nixlib-7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76.tar.bz2
nixlib-7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76.tar.lz
nixlib-7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76.tar.xz
nixlib-7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76.tar.zst
nixlib-7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76.zip
systemd: added groups kvm, render
they need to exist according to the README of systemd
-rw-r--r--nixos/modules/config/users-groups.nix2
-rw-r--r--nixos/modules/misc/ids.nix4
2 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix
index ddec21b5f6e5..426e1666a814 100644
--- a/nixos/modules/config/users-groups.nix
+++ b/nixos/modules/config/users-groups.nix
@@ -524,6 +524,8 @@ in {
       utmp.gid = ids.gids.utmp;
       adm.gid = ids.gids.adm;
       input.gid = ids.gids.input;
+      kvm.gid = ids.gids.kvm;
+      render.gid = ids.gids.render;
     };
 
     system.activationScripts.users = stringAfter [ "stdio" ]
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix
index bffd8aff78b9..0928e368d80f 100644
--- a/nixos/modules/misc/ids.nix
+++ b/nixos/modules/misc/ids.nix
@@ -326,6 +326,8 @@
       cfssl = 299;
       cassandra = 300;
       qemu-libvirtd = 301;
+      # kvm = 302; # unused
+      # render = 303; # unused
 
       # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
 
@@ -612,6 +614,8 @@
       cfssl = 299;
       cassandra = 300;
       qemu-libvirtd = 301;
+      kvm = 302; # default udev rules from systemd requires these
+      render = 303; # default udev rules from systemd requires these
 
       # When adding a gid, make sure it doesn't match an existing
       # uid. Users and groups with the same name should have equal