From 07ccc14d1a0f25b435ceee99925b1e3beba315b1 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Wed, 25 Sep 2024 14:09:11 +0200 Subject: [PATCH] feat: adds liv to docker, is a bit scuffed and needs work --- modules/core/user.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/core/user.nix b/modules/core/user.nix index 283aecc..fb4a42f 100644 --- a/modules/core/user.nix +++ b/modules/core/user.nix @@ -1,4 +1,4 @@ -{ pkgs, inputs, username, host, ...}: +{ pkgs, inputs, config, username, host, ...}: { imports = [ inputs.home-manager.nixosModules.home-manager ]; home-manager = { @@ -22,9 +22,15 @@ }; users.users.${username} = { + # extraGroups = if (config.virtualisation.docker.enable == true) then + # [ "networkmanager" "wheel" "docker" ] + # else + # [ "networkmanager" "wheel" ]; + # if (config.virtualisation.docker.enable = true) then + # extraGroups = [ "docker" ]; isNormalUser = true; description = "${username}"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "docker" ]; shell = pkgs.zsh; }; nix.settings.allowed-users = [ "${username}" ];