From 38142c72c8df676e01ac8ff183ccb7aba4033016 Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Thu, 29 Dec 2022 18:13:52 -0800 Subject: [PATCH] Enabled docker --- system/gospel/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/system/gospel/configuration.nix b/system/gospel/configuration.nix index cbbd7ff..5ea959f 100644 --- a/system/gospel/configuration.nix +++ b/system/gospel/configuration.nix @@ -37,6 +37,15 @@ # Set your time zone. time.timeZone = "America/Los_Angeles"; + virtualisation.docker = { + # TODO: How to make sure docker systemd service is enabled for user? + enable = true; + rootless = { + enable = true; + setSocketVariable = true; + }; + }; + # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; @@ -68,7 +77,7 @@ # Define a user account. Don't forget to set a password with ‘passwd’. users.users.alejandro = { isNormalUser = true; - extraGroups = ["wheel" "video" "networkmanager"]; + extraGroups = ["wheel" "video" "networkmanager" "docker"]; shell = pkgs.zsh; };