diff --git a/modules/misc/ids.nix b/modules/misc/ids.nix index 922bbb531719..941bd4303a7b 100644 --- a/modules/misc/ids.nix +++ b/modules/misc/ids.nix @@ -143,6 +143,7 @@ in smtpq = 64; supybot = 65; iodined = 66; + libvirtd = 67; # When adding a gid, make sure it doesn't match an existing uid. diff --git a/modules/virtualisation/libvirtd.nix b/modules/virtualisation/libvirtd.nix index 876ce01615ac..98d438cd63a5 100644 --- a/modules/virtualisation/libvirtd.nix +++ b/modules/virtualisation/libvirtd.nix @@ -141,7 +141,7 @@ in serviceConfig.RemainAfterExit = true; }; - users.extraGroups.libvirtd = {}; + users.extraGroups.libvirtd.gid = config.ids.gids.libvirtd; };