Enabled docker

This commit is contained in:
Alejandro Angulo 2022-12-29 18:13:52 -08:00
parent ff6f12303a
commit 38142c72c8
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -37,6 +37,15 @@
# Set your time zone. # Set your time zone.
time.timeZone = "America/Los_Angeles"; 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 # Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # 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. # Define a user account. Don't forget to set a password with passwd.
users.users.alejandro = { users.users.alejandro = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel" "video" "networkmanager"]; extraGroups = ["wheel" "video" "networkmanager" "docker"];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };