From bbb5ab0b70dbc4c97c7ccc5c78c9d1153b0fa82c Mon Sep 17 00:00:00 2001 From: zastian-dev Date: Mon, 26 Jan 2026 12:39:38 +0000 Subject: [PATCH] afdhsja --- dots/dankMeterialShell.nix | 2 +- system/services.nix | 92 +++++++++++++------------------------- 2 files changed, 33 insertions(+), 61 deletions(-) diff --git a/dots/dankMeterialShell.nix b/dots/dankMeterialShell.nix index 8f851a8..aeab12c 100644 --- a/dots/dankMeterialShell.nix +++ b/dots/dankMeterialShell.nix @@ -14,7 +14,7 @@ programs.dank-material-shell = { enable = true; systemd = { - enable = true; # if you prefer starting from your compositor + enable = true; }; #settings = { diff --git a/system/services.nix b/system/services.nix index c241eb6..4d65086 100755 --- a/system/services.nix +++ b/system/services.nix @@ -109,37 +109,37 @@ in services.flatpak.enable = true; # Sunshine (only on PC) - services.sunshine = lib.mkIf isPc { - enable = false; - settings = { - sunshine_name = "nixos"; - port = 47989; - output_name = 0; - }; - applications = { - apps = [ - { - name = "Steam"; - env = { - PATH = "$(PATH):/run/current-system/sw/bin"; - }; - output = "steam.txt"; - detached = [ - "setsid /run/current-system/sw/bin/steam steam://open/bigpicture" - ]; - prep-cmd = [ - { - "do" = ""; - "undo" = "setsid /run/current-system/sw/bin/steam steam://close/bigpicture"; - } - ]; - image-path = "steam.png"; - } - ]; - }; - capSysAdmin = false; - openFirewall = true; - }; + #services.sunshine = lib.mkIf isPc { + # enable = false; + # settings = { + # sunshine_name = "nixos"; + # port = 47989; + # output_name = 0; + # }; + # applications = { + # apps = [ + # { + # name = "Steam"; + # env = { + # PATH = "$(PATH):/run/current-system/sw/bin"; + # }; + # output = "steam.txt"; + # detached = [ + # "setsid /run/current-system/sw/bin/steam steam://open/bigpicture" + # ]; + # prep-cmd = [ + # { + # "do" = ""; + # "undo" = "setsid /run/current-system/sw/bin/steam steam://close/bigpicture"; + # } + # ]; + # image-path = "steam.png"; + # } + # ]; + # }; + # capSysAdmin = false; + # openFirewall = true; + #}; # Ollama (only on PC) services.ollama = lib.mkIf isPc { @@ -158,35 +158,7 @@ in }; }; - # ─── Systemd User Services ────────────────────────────────────────────────── - systemd.user.services.steam-run-url-service = { - description = "Service to launch Steam URLs via FIFO"; - wantedBy = [ "default.target" ]; - serviceConfig = { - ExecStart = - let - script = pkgs.writeShellScript "steam-run-url-service.sh" '' - #!/usr/bin/env bash - FIFO="/run/user/$(id --user)/steam-run-url.fifo" - if [ ! -p "$FIFO" ]; then - mkfifo "$FIFO" - fi - while true; do - if read line <"$FIFO"; then - steam_env=(); - if [ "$XDG_SESSION_DESKTOP" = "sway" ] || [ "$XDG_SESSION_DESKTOP" = "Hyprland" ] || [ "$DESKTOP_SESSION" = "sway" ] || [ "$DESKTOP_SESSION" = "Hyprland" ]; then - steam_env+=("QT_QPA_PLATFORM=wayland"); - fi - steam "$line" - fi - done - ''; - in - "${script}"; - Restart = "always"; - }; - path = [ pkgs.steam ]; - }; + # ─── Networking & Remote ──────────────────────────────────────────────────── # services.resolved = {