feat: refactor the modules/servers directory.
This commit is contained in:
parent
4e783c052b
commit
8b754d3a7e
69 changed files with 61 additions and 62 deletions
28
modules/servers/common/podman.nix
Normal file
28
modules/servers/common/podman.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{pkgs, ...}: {
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
flags = [
|
||||
"--filter=until=24h"
|
||||
"--filter=label!=important"
|
||||
];
|
||||
};
|
||||
defaultNetwork.settings.dns.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable system podman autoupdate timer
|
||||
systemd.timers.podman-auto-update = {
|
||||
enable = true;
|
||||
wantedBy = ["timers.target"];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
podman-compose
|
||||
podman-tui
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue