diff options
author | lassulus <lass@lassul.us> | 2016-12-26 13:29:06 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2016-12-26 13:29:06 +0100 |
commit | 512f90d10096e81180730374d5d9664384894807 (patch) | |
tree | 013167d677bc08f15d6a9852cca1dca2b2903a3d | |
parent | c37b42b702e38bbf2cc6dce150be6c8aa6aa6b25 (diff) |
l 2 libvirt: add lass to libvirtd
-rw-r--r-- | lass/2configs/libvirt.nix | 20 |
1 files changed, 2 insertions, 18 deletions
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 <stockholm/lib>) 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 - ''; } |