From a14261ebb7c508d3b2fc8e53f5008c63ff19661f Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Tue, 2 Sep 2025 09:22:02 -0400 Subject: [PATCH] avahi and just use docker on Parzival --- hosts/common/core/avahi.nix | 10 ++++++++++ hosts/common/core/default.nix | 1 + hosts/nixos/Parzival/default.nix | 20 +------------------- 3 files changed, 12 insertions(+), 19 deletions(-) create mode 100644 hosts/common/core/avahi.nix diff --git a/hosts/common/core/avahi.nix b/hosts/common/core/avahi.nix new file mode 100644 index 0000000..493e23d --- /dev/null +++ b/hosts/common/core/avahi.nix @@ -0,0 +1,10 @@ +{lib, ...}: { + services.avahi = lib.mkDefault { + enable = true; + nssmdns4 = true; + publish = { + enable = true; + domain = true; + }; + }; +} diff --git a/hosts/common/core/default.nix b/hosts/common/core/default.nix index ba8a952..10873a8 100644 --- a/hosts/common/core/default.nix +++ b/hosts/common/core/default.nix @@ -28,6 +28,7 @@ in { "hosts/common/core/fonts.nix" "hosts/common/core/sudo.nix" "hosts/common/core/nebula.nix" + "hosts/common/core/avahi.nix" "hosts/common/core/dns.nix" "hosts/common/users/primary" "hosts/common/users/primary/${platform}.nix" diff --git a/hosts/nixos/Parzival/default.nix b/hosts/nixos/Parzival/default.nix index 9ce3794..0360dcf 100644 --- a/hosts/nixos/Parzival/default.nix +++ b/hosts/nixos/Parzival/default.nix @@ -37,6 +37,7 @@ "hosts/common/optional/gaming.nix" "hosts/common/optional/vbox.nix" "hosts/common/optional/printing.nix" + "hosts/common/optional/docker.nix" "modules/services/ollama" ]) ]; @@ -48,25 +49,6 @@ 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;