move podman config to more suitable location

This commit is contained in:
k3t
2026-07-28 09:49:34 -06:00
parent 07f1f811b9
commit acc6970571
2 changed files with 99 additions and 28 deletions
+14
View File
@@ -14,6 +14,20 @@
networking.hostName = "nixcloud"; # Define your hostname.
# podman
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true; # optional; lets you use `docker` CLI
};
virtualisation.oci-containers.backend = "podman";
# Enable container name DNS for all Podman networks.
networking.firewall.interfaces = let
matchAll = if !config.networking.nftables.enable then "podman+" else "podman*";
in {
"${matchAll}".allowedUDPPorts = [ 53 ];
};
# Define a user account. Don't forget to set a password with passwd.
users.users = {