summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2016-12-26 13:29:06 +0100
committerlassulus <lass@lassul.us>2016-12-26 13:29:06 +0100
commit512f90d10096e81180730374d5d9664384894807 (patch)
tree013167d677bc08f15d6a9852cca1dca2b2903a3d /lass/2configs
parentc37b42b702e38bbf2cc6dce150be6c8aa6aa6b25 (diff)
l 2 libvirt: add lass to libvirtd
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/libvirt.nix20
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
- '';
}