From 512f90d10096e81180730374d5d9664384894807 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 26 Dec 2016 13:29:06 +0100 Subject: l 2 libvirt: add lass to libvirtd --- lass/2configs/libvirt.nix | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'lass/2configs/libvirt.nix') diff --git a/lass/2configs/libvirt.nix b/lass/2configs/libvirt.nix index e739d2f79..8c095bb01 100644 --- a/lass/2configs/libvirt.nix +++ b/lass/2configs/libvirt.nix @@ -1,23 +1,7 @@ { config, lib, pkgs, ... }: -let - mainUser = config.users.extraUsers.mainUser; - inherit (import ) genid; - -in { +{ + users.users.mainUser.extraGroups = [ "libvirtd" ]; virtualisation.libvirtd.enable = true; - users.extraUsers = { - libvirt = { - uid = genid "libvirt"; - description = "user for running libvirt stuff"; - home = "/home/libvirt"; - useDefaultShell = true; - extraGroups = [ "libvirtd" "audio" ]; - createHome = true; - }; - }; - security.sudo.extraConfig = '' - ${mainUser.name} ALL=(libvirt) NOPASSWD: ALL - ''; } -- cgit v1.2.3