feat(servers): setup podman on every server.
This commit is contained in:
parent
8c4e9f6641
commit
38f46152f8
@ -4,5 +4,6 @@
|
|||||||
./user.nix
|
./user.nix
|
||||||
./traefik.nix
|
./traefik.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
|
./podman.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
21
modules/servers/general/podman.nix
Normal file
21
modules/servers/general/podman.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
virtualisation = {
|
||||||
|
podman = {
|
||||||
|
enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
autoPrune = {
|
||||||
|
enable = true;
|
||||||
|
dates = "weekly";
|
||||||
|
flags = [
|
||||||
|
"--filter=until=24h"
|
||||||
|
"--filter=label!=important"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
defaultNetwork.settings.dns.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
podman-compose
|
||||||
|
podman-tui
|
||||||
|
];
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user