diff --git a/system/virtualisation.nix b/system/virtualisation.nix index 0d4f67d..2b1b77f 100644 --- a/system/virtualisation.nix +++ b/system/virtualisation.nix @@ -12,5 +12,14 @@ swtpm.enable = true; }; }; + + docker = { + enable = true; + # Use the rootless mode - run Docker daemon as non-root user + rootless = { + enable = true; + setSocketVariable = true; + }; + }; }; } diff --git a/user/common.nix b/user/common.nix index 21249b3..421f166 100644 --- a/user/common.nix +++ b/user/common.nix @@ -12,7 +12,7 @@ in { home = "/home/${user.username}"; createHome = true; isNormalUser = true; - extraGroups = [ "wheel" "input" "nordvpn" "networkmanager" "libvirtd" ]; + extraGroups = [ "wheel" "input" "nordvpn" "networkmanager" "libvirtd" "docker" ]; }; programs.zsh.enable = true;