enabled base podman

This commit is contained in:
2026-07-30 19:41:07 +01:00
parent 8dc4e683a8
commit c49ea2eb68
3 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
{self, ...}: {
flake.nixosModules.containers = {config, ...}: let
modules = with self.nixosModules; [
];
in {
imports = modules;
# Runtime
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
};
# 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];
};
virtualisation.oci-containers.backend = "podman";
};
}

View File

@@ -11,6 +11,7 @@
core
server02DiskConfiguration
nvidiaDrivers
containers
]
++ (with inputs.nix-config.nixosModules; [
nvim

View File

@@ -3,7 +3,6 @@
networking = {
hostName = "server02";
};
virtualisation.docker.enable = true;
swapDevices = [
{
device = "/swapfile";