about summary refs log tree commit diff
path: root/modules/virtualisation/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/virtualisation/default.nix')
-rw-r--r--modules/virtualisation/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/virtualisation/default.nix b/modules/virtualisation/default.nix
index c81b3d4..82df906 100644
--- a/modules/virtualisation/default.nix
+++ b/modules/virtualisation/default.nix
@@ -1,8 +1,10 @@
-{ config, pkgs, ... }:
+{ config, pkgs, user, ... }:
 
 {
-  virtualisation.docker.enable = true;
-  users.users.baitinq.extraGroups = [ "docker" ];
+  virtualisation = {
+    docker.enable = true;
+    libvirtd.enable = true;
+  };
 
-  virtualisation.libvirtd.enable = true;
+  users.users.${user}.extraGroups = [ "docker" ];
 }