diff options
Diffstat (limited to 'modules/root/docker.nix')
-rw-r--r-- | modules/root/docker.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/root/docker.nix b/modules/root/docker.nix index d4b6272..2499699 100644 --- a/modules/root/docker.nix +++ b/modules/root/docker.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, config, ... }: { +{ pkgs, lib, config, userDetails, ... }: { options = { docker.enable = lib.mkEnableOption "enables docker"; docker.btrfsSupport = lib.mkEnableOption "changes docker storageDriver to btrfs"; @@ -13,5 +13,7 @@ environment.systemPackages = with pkgs; [ docker-compose ]; + + users.groups.docker.members = [ userDetails.username ]; }; } |