diff --git a/hosts/common/optional/docker.nix b/hosts/common/optional/docker.nix new file mode 100644 index 0000000..0aeaf0d --- /dev/null +++ b/hosts/common/optional/docker.nix @@ -0,0 +1,8 @@ +{pkgs, ...}: { + virtualisation.docker = { + enable = true; + extraPackages = [ + pkgs.docker-compose + ]; + }; +} diff --git a/hosts/nixos/Parzival/default.nix b/hosts/nixos/Parzival/default.nix index d98205e..9ce3794 100644 --- a/hosts/nixos/Parzival/default.nix +++ b/hosts/nixos/Parzival/default.nix @@ -36,7 +36,6 @@ "hosts/common/optional/pentesting.nix" "hosts/common/optional/gaming.nix" "hosts/common/optional/vbox.nix" - "hosts/common/optional/podman.nix" "hosts/common/optional/printing.nix" "modules/services/ollama" ]) @@ -49,6 +48,25 @@ persistFolder = "/persist"; }; + specialisation = { + podman = { + inheritParentConfig = true; + configuration = let + podman = lib.custom.relativeToRoot "hosts/common/optional/podman.nix"; + in { + imports = [podman]; + }; + }; + docker = { + inheritParentConfig = true; + configuration = let + docker = lib.custom.relativeToRoot "hosts/common/optional/docker.nix"; + in { + imports = [docker]; + }; + }; + }; + networking = { networkmanager.enable = true; enableIPv6 = false;