From 0f9be571ed739ad54e58a3d92ff3901ca41ac733 Mon Sep 17 00:00:00 2001 From: janis Date: Mon, 6 Apr 2026 20:21:35 +0200 Subject: [PATCH] docker --- system/virtualisation.nix | 9 +++++++++ user/common.nix | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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;