From b334d69bd92186eb7cc0f4b920a6906f8a9b944b Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 2 Oct 2024 09:16:03 +0200 Subject: [PATCH] tools --- profiles/desktop/steam.nix | 10 ++++++++++ users/pbsds/home/default.nix | 3 +++ users/pbsds/home/profiles/sshuttle.nix | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/profiles/desktop/steam.nix b/profiles/desktop/steam.nix index 7067209..385fce6 100644 --- a/profiles/desktop/steam.nix +++ b/profiles/desktop/steam.nix @@ -4,6 +4,7 @@ programs.steam.remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play programs.steam.dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + # TODO: gamescope? # TODO: gamemode? nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ @@ -81,6 +82,15 @@ # nice to have jstest-gtk antimicrox + + # since gnome doesn't let me select the provided [Desktop Action BigPicture] + # in the overview without right clicking /shrug + (makeDesktopItem { + desktopName = "Steam Big Picture"; + name = "Steam"; + exec = "steam steam://open/bigpicture"; + icon = "steam"; + }) ]; } diff --git a/users/pbsds/home/default.nix b/users/pbsds/home/default.nix index d245fa7..d0db332 100644 --- a/users/pbsds/home/default.nix +++ b/users/pbsds/home/default.nix @@ -83,6 +83,9 @@ /* cachix */ /* nix-template */ nix-output-monitor + nix-du + nix-tree + nix-visualize (pkgs.nix-inspect or unstable.nix-inspect) (pkgs.nix-btm or unstable.nix-btm) unstable.nixpkgs-review diff --git a/users/pbsds/home/profiles/sshuttle.nix b/users/pbsds/home/profiles/sshuttle.nix index af7e351..1107306 100644 --- a/users/pbsds/home/profiles/sshuttle.nix +++ b/users/pbsds/home/profiles/sshuttle.nix @@ -9,7 +9,8 @@ function vpn ( ip="$(dig +short -x a $1 | tail -n 1)" set -x - sshuttle 0.0.0.0/0 --disable-ipv6 --dns -r "$1" -x $ip -x 127.0.0.1 -x 172.0.0.0/8 + #sshuttle 0.0.0.0/0 --disable-ipv6 --dns -r "$1" -x $ip -x 127.0.0.1 -x 172.0.0.0/8 + sshuttle 0.0.0.0/0 ::/0 --dns -r "$1" -x $ip -x 127.0.0.1 -x 172.0.0.0/8 ) if test -f ~/.ssh/config; then