podman + removed lima cause its more of a dev tool

This commit is contained in:
2026-07-05 21:46:01 -05:00
parent a98dd1c2cc
commit b1a872b511
5 changed files with 75 additions and 59 deletions
+43 -30
View File
@@ -1,38 +1,51 @@
{ pkgs, ... }:
{
virtualisation.podman = {
enable = true;
config,
lib,
pkgs,
...
}:
let
cfg = config.homelab.virtualization;
in
{
config = lib.mkMerge [
(lib.mkIf cfg.podman.enable {
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
# For rootless containers
security.unprivilegedUsernsClone = true;
# For rootless containers
security.unprivilegedUsernsClone = true;
users.users.river = {
subUidRanges = [
{
startUid = 100000;
count = 65536;
}
];
subGidRanges = [
{
startGid = 100000;
count = 65536;
}
];
users.users.${cfg.user} = {
subUidRanges = [
{
startUid = 100000;
count = 65536;
}
];
subGidRanges = [
{
startGid = 100000;
count = 65536;
}
];
extraGroups = [
"podman"
];
};
extraGroups = [
"podman"
];
};
})
environment.systemPackages = with pkgs; [
podman
podman-compose
podman-desktop
(lib.mkIf cfg.podman.packages.enable {
environment.systemPackages = with pkgs; [
podman
podman-compose
podman-desktop
];
})
];
}