Personal Nix setup
0
fork

Configure Feed

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

Add docker-compose to podman configuration

+9 -1
+9 -1
modules/server/podman.nix
··· 1 - { lib, config, user, ... }: 1 + { lib, config, user, pkgs, ... }: 2 2 3 3 with lib; 4 4 let ··· 28 28 enable = true; 29 29 dockerCompat = true; 30 30 autoPrune.enable = true; 31 + extraPackages = with pkgs; [ podman-compose ]; 31 32 defaultNetwork.settings = { 32 33 dns_enabled = true; 33 34 }; 34 35 }; 35 36 }; 36 37 38 + environment.systemPackages = with pkgs; [ docker-compose ]; 37 39 users.users."${user}".extraGroups = [ "podman" ]; 40 + 41 + environment.extraInit = '' 42 + if [ -z "$DOCKER_HOST" -a -n "$XDG_RUNTIME_DIR" ]; then 43 + export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/podman/podman.sock" 44 + fi 45 + ''; 38 46 39 47 boot.kernel.sysctl = mkIf cfg.tweakKernel { 40 48 "kernel.unprivileged_userns_clone" = true;