33 lines
627 B
Nix
33 lines
627 B
Nix
![]() |
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
with lib; let
|
||
|
cfg = config.extraServices.podman;
|
||
|
in {
|
||
|
options.extraServices.podman.enable = mkEnableOption "enable podman";
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
virtualisation = {
|
||
|
podman = {
|
||
|
enable = true;
|
||
|
dockerCompat = true;
|
||
|
autoPrune = {
|
||
|
enable = true;
|
||
|
dates = "weekly";
|
||
|
flags = [
|
||
|
"--filter=until=24h"
|
||
|
"--filter=label!=important"
|
||
|
];
|
||
|
};
|
||
|
defaultNetwork.settings.dns_enabled = true;
|
||
|
};
|
||
|
};
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
podman-compose
|
||
|
];
|
||
|
};
|
||
|
}
|