Skip to content

Instantly share code, notes, and snippets.

@Lillecarl
Created April 29, 2024 12:57
Show Gist options
  • Save Lillecarl/83f573c9e1265ea88c8a3f3b066f51b1 to your computer and use it in GitHub Desktop.
Save Lillecarl/83f573c9e1265ea88c8a3f3b066f51b1 to your computer and use it in GitHub Desktop.
From 96e8af0db92f64c0f3f3118297b9aaa8561142f7 Mon Sep 17 00:00:00 2001
From: Carl Hjerpe <git@hjerpe.xyz>
Date: Mon, 29 Apr 2024 14:56:15 +0200
Subject: [PATCH] podman: Add compose support
Enables docker socket
Enables weekly automatic pruning
Adds alias for docker-compose -> podman-compose
---
hosts/nub/default.nix | 7 +++++--
lillecarl/dotfiles/.config/fish/conf.d/linked.fish | 1 +
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/hosts/nub/default.nix b/hosts/nub/default.nix
index c3e87f0..3efb575 100755
--- a/hosts/nub/default.nix
+++ b/hosts/nub/default.nix
@@ -244,10 +244,12 @@
podman = {
enable = true;
dockerCompat = true;
+
+ autoPrune.enable = true;
+ dockerSocket.enable = true;
};
};
-
environment.systemPackages = with pkgs; [
# Kernel modules with userspace commands
amdgpu_top
@@ -268,8 +270,9 @@
virt-manager # Virtualisation manager
virt-manager-qt # Shitty version of virt-manager
zenmonitor # AMD CPU monitoring
+ podman # foss docker
+ podman-compose # docker-compose for podman
];
-
system.stateVersion = "24.05";
}
diff --git a/lillecarl/dotfiles/.config/fish/conf.d/linked.fish b/lillecarl/dotfiles/.config/fish/conf.d/linked.fish
index 3f9cd9e..2570bed 100644
--- a/lillecarl/dotfiles/.config/fish/conf.d/linked.fish
+++ b/lillecarl/dotfiles/.config/fish/conf.d/linked.fish
@@ -20,6 +20,7 @@ alias cat="bat --paging=never"
alias grt="cd (git root)"
alias tg=terragrunt
alias pager=$PAGER
+alias docker-compose=podman-compose
abbr -a :q exit
--
2.44.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment