Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add docker

+28
+1
machines/sodacream/configuration.nix
··· 26 26 enable = true; 27 27 tailscale.enable = true; 28 28 sshd.enable = false; 29 + docker.enable = true; 29 30 }; 30 31 }; 31 32
+1
modules/server/default.nix
··· 23 23 ./jellyfin.nix 24 24 ./home-assistant.nix 25 25 ./podman.nix 26 + ./docker.nix 26 27 ]; 27 28 }
+26
modules/server/docker.nix
··· 1 + { lib, pkgs, config, user, ... }: 2 + 3 + with lib; 4 + let 5 + cfgRoot = config.modules.server; 6 + cfg = config.modules.server.docker; 7 + in { 8 + options.modules.server.docker = { 9 + enable = mkOption { 10 + default = false; 11 + example = true; 12 + description = "Whether to enable Docker."; 13 + type = types.bool; 14 + }; 15 + }; 16 + 17 + config = mkIf (cfg.enable && cfgRoot.enable) { 18 + virtualisation.docker.enable = true; 19 + 20 + environment.systemPackages = with pkgs; [ 21 + docker-compose 22 + ]; 23 + 24 + users.extraGroups.docker.members = [ user ]; 25 + }; 26 + }