mirror of
https://github.com/acaloiaro/sfos
synced 2026-07-21 10:12:24 +00:00
23 lines
593 B
Nix
23 lines
593 B
Nix
{pkgs, ...}: {
|
|
virtualisation = {
|
|
podman = {
|
|
enable = true;
|
|
# Alias all docker commands to podman
|
|
dockerCompat = true;
|
|
# Required for containers under podman-compose to be able to talk to each other.
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
flags = [
|
|
"--filter=until=24h"
|
|
# Don't prune containers flagged 'important'
|
|
"--filter=label!=important"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
podman-compose
|
|
];
|
|
}
|