From ba59542e9769c46dd4b1401a7511621424379899 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 1 Dec 2024 01:40:11 +0100 Subject: [PATCH] add and enable avahi --- nixos/desktop/default.nix | 12 ++++++++++++ nixos/hosts/shodan/configuration.nix | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix index efdae88..eec7786 100644 --- a/nixos/desktop/default.nix +++ b/nixos/desktop/default.nix @@ -170,6 +170,18 @@ dockerCompat = true; }; + services.avahi = { + nssmdns = true; + enable = true; + ipv4 = true; + ipv6 = true; + publish = { + enable = true; + addresses = true; + workstation = true; + }; + }; + security.tpm2.enable = true; security.tpm2.pkcs11.enable = true; # expose /run/current-system/sw/lib/libtpm2_pkcs11.so security.tpm2.tctiEnvironment.enable = true; # TPM2TOOLS_TCTI and TPM2_PKCS11_TCTI env variables diff --git a/nixos/hosts/shodan/configuration.nix b/nixos/hosts/shodan/configuration.nix index f89c6a6..d6c4998 100644 --- a/nixos/hosts/shodan/configuration.nix +++ b/nixos/hosts/shodan/configuration.nix @@ -124,6 +124,18 @@ services.desktopManager.plasma6.enable = true; programs.kdeconnect.enable = true; + services.avahi = { + nssmdns = true; + enable = true; + ipv4 = true; + ipv6 = true; + publish = { + enable = true; + addresses = true; + workstation = true; + }; + }; + services.displayManager.defaultSession = "plasma"; services.displayManager.sddm.wayland.enable = lib.mkForce true; services.displayManager.sddm.settings = {