Replace docker with podman

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-15 00:32:16 +00:00
parent 04ec3ba23b
commit 8a9d75808a
7 changed files with 43 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
{ pkgs, ... }:
{
virtualisation = {
containers.enable = true;
oci-containers.backend = "podman";
podman.enable = true;
};
environment = {
persistence."/persist"."/var/lib/containers" = { };
systemPackages = with pkgs; [
podman-compose
dive
];
};
}

View File

@@ -0,0 +1,19 @@
{
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{ lib, pkgs, ... }:
{
home-manager.users.${user} = {
services.podman.enable = true;
home = {
packages = with pkgs; [
podman-compose
dive
];
sessionVariables.REGISTRY_AUTH_FILE = "${home}/.config/containers/auth.json";
};
};
}