nix/nixos/common/services/podman.nix
iFargle c056588475
Some checks failed
build-linode-img / build-linode-img (push) Failing after 30s
Add nuc-server, make docker/podman common services
2023-12-19 11:17:00 +09:00

26 lines
712 B
Nix

{ inputs, pkgs, ... }: {
# Need to increase this because the number of
# containers I have drive the defaults over the max
boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 10485760;
"fs.inotify.max_user_instances" = 1024;
"net.ipv4.ip_unprivileged_port_start" = 80;
};
virtualisation.podman = {
enable = true;
dockerSocket.enable = true;
dockerCompat = true;
autoPrune = {
enable = true;
dates = "weekly";
flags = [ "--all" ];
};
};
environment.systemPackages = with pkgs; [
podman-compose
podman-tui
inputs.compose2nix.packages.x86_64-linux.default
];
}