From 77002020a46052e66e35fab219a1320f46e13cda Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 13 Aug 2025 22:30:19 -0500 Subject: [PATCH] no sunshine --- .../nathan/programs/hyprland/default.nix | 1 - .../configuration/homebox/default.nix | 2 - system-config/services/containers/default.nix | 1 - .../services/containers/sunshine/default.nix | 97 ------------------- system-config/services/default.nix | 1 - system-config/services/sunshine/default.nix | 20 ---- 6 files changed, 122 deletions(-) delete mode 100644 system-config/services/containers/sunshine/default.nix delete mode 100644 system-config/services/sunshine/default.nix diff --git a/home-manager/nathan/programs/hyprland/default.nix b/home-manager/nathan/programs/hyprland/default.nix index b03b4b3..1e4affc 100644 --- a/home-manager/nathan/programs/hyprland/default.nix +++ b/home-manager/nathan/programs/hyprland/default.nix @@ -32,7 +32,6 @@ monitor=HEADLESS-2,1920x1080@60,0x0,1 exec-once=hyprctl output create headless HEADLESS-2 exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2 - exec-once=${pkgs.sunshine}/bin/sunshine '' else ''''; in monitor + '' source = /home/nathan/.config/hypr/main.conf diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index 71d8407..fdc4995 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -195,7 +195,6 @@ netbird.enable = true; minecraft.enable = false; steam.enable = false; - sunshine.enable = true; virtualization = { traefik.enable = true; jellyfin.enable = true; @@ -221,7 +220,6 @@ minecraft.enable = false; #wont connect sandbox.enable = false; - sunshine.enable = false; }; }; }; diff --git a/system-config/services/containers/default.nix b/system-config/services/containers/default.nix index 46ab6d6..6259e62 100644 --- a/system-config/services/containers/default.nix +++ b/system-config/services/containers/default.nix @@ -20,6 +20,5 @@ ./novnc ./minecraft ./sandbox - ./sunshine ]; } diff --git a/system-config/services/containers/sunshine/default.nix b/system-config/services/containers/sunshine/default.nix deleted file mode 100644 index 404b267..0000000 --- a/system-config/services/containers/sunshine/default.nix +++ /dev/null @@ -1,97 +0,0 @@ -{ config, lib, pkgs, ... }: { - - options.sysconfig.opts.virtualization.sunshine.enable = lib.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.sysconfig.opts.virtualization.sunshine.enable { - - containers.sunshine = { - - autoStart = true; - privateNetwork = true; - hostAddress = "192.168.100.10"; - localAddress = "192.168.100.31"; - - config = { - - services.sunshine = { - enable = true; - - autoStart = true; - - openFirewall = true; - }; - - system.stateVersion = "25.05"; - }; - - bindMounts = { - "/dev/nvidia0" = { - hostPath = "/dev/nvidia0"; - isReadOnly = false; - }; - "/dev/nvidiactl" = { - hostPath = "/dev/nvidiactl"; - isReadOnly = false; - }; - "/dev/nvidia-uvm" = { - hostPath = "/dev/nvidia-uvm"; - isReadOnly = false; - }; - "/dev/nvidia-modeset" = { - hostPath = "/dev/nvidia-modeset"; - isReadOnly = false; - }; - "/dev/nvidia-uvm-tools" = { - hostPath = "/dev/nvidia-uvm-tools"; - isReadOnly = false; - }; - "/dev/dri" = { - hostPath = "/dev/dri"; - isReadOnly = false; - }; - }; - - allowedDevices = [ - { - node = "/dev/nvidia0"; - modifier = "rw"; - } - { - node = "/dev/nvidiactl"; - modifier = "rw"; - } - { - node = "/dev/nvidia-uvm"; - modifier = "rw"; - } - { - node = "/dev/nvidia-modeset"; - modifier = "rw"; - } - { - node = "/dev/nvidia-uvm-tools"; - modifier = "rw"; - } - { - node = "/dev/dri/card0"; - modifier = "rw"; - } - { - node = "/dev/dri/card1"; - modifier = "rw"; - } - { - node = "/dev/dri/renderD128"; - modifier = "rw"; - } - { - node = "/dev/dri/renderD129"; - modifier = "rw"; - } - ]; - }; - }; -} diff --git a/system-config/services/default.nix b/system-config/services/default.nix index e723de0..fe47acd 100644 --- a/system-config/services/default.nix +++ b/system-config/services/default.nix @@ -9,6 +9,5 @@ ./sddm ./novnc ./kdePlasma6 - ./sunshine ]; } diff --git a/system-config/services/sunshine/default.nix b/system-config/services/sunshine/default.nix deleted file mode 100644 index 28204ee..0000000 --- a/system-config/services/sunshine/default.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ config, lib, pkgs, ... }: { - - options.sysconfig.opts.sunshine.enable = lib.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.sysconfig.opts.sunshine.enable { - - services.sunshine = { - enable = true; - - autoStart = true; - - capSysAdmin = true; - - openFirewall = true; - }; - }; -}