From 7f8b1dd32f45463b2fce58e8f33f4ddffbaa1a76 Mon Sep 17 00:00:00 2001 From: Eric Wolf Date: Wed, 15 Aug 2018 22:10:31 +0200 Subject: [PATCH] systemd: added groups kvm, render they need to exist according to the README of systemd --- nixos/modules/config/users-groups.nix | 2 ++ nixos/modules/misc/ids.nix | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index ddec21b5f6e55b..426e1666a814f9 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 bffd8aff78b908..0928e368d80ffa 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