diff --git a/hosts/bolle/default.nix b/hosts/bolle/default.nix index 4f7b4ce..e186df1 100644 --- a/hosts/bolle/default.nix +++ b/hosts/bolle/default.nix @@ -10,6 +10,7 @@ ../../hardware/opengl-intel.nix ../../profiles/auto-upgrade.nix ../../profiles/sshd.nix + ../../profiles/podman.nix ../../users # home-manager ../../users/pbsds @@ -28,11 +29,6 @@ services.thermald.enable = true; - # Virtualization - #virtualisation.podman.enable = true; - #virtualisation.podman.dockerCompat = true; # alias docker to podman - #virtualisation.oci-containers.backend = "podman"; # default - # Networking networking.networkmanager.enable = true; /** / diff --git a/hosts/nord/default.nix b/hosts/nord/default.nix index 6c9b539..f9ed203 100644 --- a/hosts/nord/default.nix +++ b/hosts/nord/default.nix @@ -48,11 +48,6 @@ services.thermald.enable = true; - # Virtualization - #virtualisation.podman.enable = true; - #virtualisation.podman.dockerCompat = true; # alias docker to podman - #virtualisation.oci-containers.backend = "podman"; # default - # Networking networking.networkmanager.enable = true; #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. diff --git a/hosts/noximilien/default.nix b/hosts/noximilien/default.nix index 2ddf81b..e5c4dba 100644 --- a/hosts/noximilien/default.nix +++ b/hosts/noximilien/default.nix @@ -9,6 +9,7 @@ ../../hardware/gpu/intel.nix ../../profiles/auto-upgrade.nix ../../profiles/sshd.nix + ../../profiles/podman.nix ../../users # home-manager ../../users/pbsds @@ -100,11 +101,6 @@ services.thermald.enable = true; - # Virtualization - virtualisation.podman.enable = true; - virtualisation.podman.dockerCompat = true; # alias docker to podman - virtualisation.oci-containers.backend = "podman"; # default - # Networking networking.networkmanager.enable = true; #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. diff --git a/hosts/sopp/default.nix b/hosts/sopp/default.nix index 0fffb4d..75c5984 100644 --- a/hosts/sopp/default.nix +++ b/hosts/sopp/default.nix @@ -55,11 +55,6 @@ services.thermald.enable = true; - # Virtualization - #virtualisation.podman.enable = true; - #virtualisation.podman.dockerCompat = true; # alias docker to podman - #virtualisation.oci-containers.backend = "podman"; # default - # Networking /**/ networking.networkmanager.enable = true; diff --git a/profiles/podman.nix b/profiles/podman.nix new file mode 100644 index 0000000..9da58de --- /dev/null +++ b/profiles/podman.nix @@ -0,0 +1,11 @@ +{ + virtualisation.podman.enable = true; + virtualisation.podman.dockerCompat = true; # alias docker to podman + virtualisation.oci-containers.backend = "podman"; # default + + # Required for containers under podman-compose to be able to talk to each other. + #virtualisation.defaultNetwork.settings.dns_enabled = true; + + # TODO: if root-on-zfs + #virtualisation.podman.extraPackages = [ pkgs.zfs ]; +}