From db3d17f176b3e5f0c510e8fee22835e5b1321882 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 1 Dec 2024 01:02:32 +0100 Subject: [PATCH 1/4] add fcast stuff to shodan --- home-manager/hosts/shodan/lillian.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/hosts/shodan/lillian.nix b/home-manager/hosts/shodan/lillian.nix index 52f1d3d..c054866 100644 --- a/home-manager/hosts/shodan/lillian.nix +++ b/home-manager/hosts/shodan/lillian.nix @@ -56,6 +56,8 @@ freetube obs-studio vlc + fcast-receiver + fcast-client # System tools: rage From ba59542e9769c46dd4b1401a7511621424379899 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 1 Dec 2024 01:40:11 +0100 Subject: [PATCH 2/4] 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 = { From 965fbba1eba774ee5983f202e4406455107851cf Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 1 Dec 2024 01:42:34 +0100 Subject: [PATCH 3/4] renamed apparently --- nixos/desktop/default.nix | 2 +- nixos/hosts/shodan/configuration.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix index eec7786..db37969 100644 --- a/nixos/desktop/default.nix +++ b/nixos/desktop/default.nix @@ -171,7 +171,7 @@ }; services.avahi = { - nssmdns = true; + nssmdns4 = true; enable = true; ipv4 = true; ipv6 = true; diff --git a/nixos/hosts/shodan/configuration.nix b/nixos/hosts/shodan/configuration.nix index d6c4998..7e693da 100644 --- a/nixos/hosts/shodan/configuration.nix +++ b/nixos/hosts/shodan/configuration.nix @@ -125,7 +125,7 @@ programs.kdeconnect.enable = true; services.avahi = { - nssmdns = true; + nssmdns4 = true; enable = true; ipv4 = true; ipv6 = true; From 9236fcf2fce45cc97ddaecf98b1c6ed5f427f5bc Mon Sep 17 00:00:00 2001 From: Lillian Violet Date: Sun, 1 Dec 2024 01:40:52 +0000 Subject: [PATCH 4/4] Add ports open for fcast --- nixos/desktop/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix index db37969..e2f0a53 100644 --- a/nixos/desktop/default.nix +++ b/nixos/desktop/default.nix @@ -105,6 +105,7 @@ # Enable networking networking.networkmanager.enable = true; +networking.firewall.allowedTCPPorts = [ 46899 46898 ]; programs.steam = { enable = true;