From 0ef2de2dacd37d3231512587bc9b66dfa38929a3 Mon Sep 17 00:00:00 2001 From: tristan Date: Sat, 22 Apr 2023 09:31:03 +0100 Subject: [PATCH] kde connect, pipewire casting, swayidle --- system/global/home.nix | 25 +++++++++++++++++++++++++ system/global/system.nix | 6 ++++++ 2 files changed, 31 insertions(+) diff --git a/system/global/home.nix b/system/global/home.nix index e5d85e7..8af39c6 100644 --- a/system/global/home.nix +++ b/system/global/home.nix @@ -81,6 +81,7 @@ in brave quickemu bitwarden + libsForQt5.kasts ]) ++ (with my-scripts; [ play-pause bwmenu @@ -105,10 +106,17 @@ in }; services.swayidle.enable = true; + services.swayidle.systemdTarget = "graphical-session.target"; services.swayidle.events = [ { event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; } { event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; } ]; + services.swayidle.timeouts = [ + { + timeout = 60; + command = "${pkgs.swaylock-effects}/bin/swaylock -f"; + } + ]; wayland.windowManager.hyprland = { enable = true; @@ -758,6 +766,19 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a- } ] ''; + home.file.".config/pipewire/pipewire.conf.d/tunnel.conf".text = '' + context.modules = [ + { + name = module-native-protocol-tcp + }, + { + name = module-zeroconf-publish + }, + { + name = module-zeroconf-discover + } + ] + ''; systemd.user.services = { snapclient = { Unit = { @@ -769,6 +790,10 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a- }; }; + services.kdeconnect = { + enable = true; + indicator = true; + }; } diff --git a/system/global/system.nix b/system/global/system.nix index 32f3c2c..e453227 100644 --- a/system/global/system.nix +++ b/system/global/system.nix @@ -34,6 +34,12 @@ }; # pipewire raop networking.firewall.allowedUDPPorts = [ 6002 6001 ]; + # network streaming + networking.firewall.allowedTCPPorts = [ 4713 ]; + + # kde connect + networking.firewall.allowedTCPPortRanges = [{ from = 1714; to = 1764; }]; + networking.firewall.allowedUDPPortRanges = [{ from = 1714; to = 1764; }]; services.avahi.enable = true;