no sunshine
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
||||||
exec-once=hyprctl output create headless HEADLESS-2
|
exec-once=hyprctl output create headless HEADLESS-2
|
||||||
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
||||||
exec-once=${pkgs.sunshine}/bin/sunshine
|
|
||||||
'' else '''';
|
'' else '''';
|
||||||
in monitor + ''
|
in monitor + ''
|
||||||
source = /home/nathan/.config/hypr/main.conf
|
source = /home/nathan/.config/hypr/main.conf
|
||||||
|
|||||||
@@ -195,7 +195,6 @@
|
|||||||
netbird.enable = true;
|
netbird.enable = true;
|
||||||
minecraft.enable = false;
|
minecraft.enable = false;
|
||||||
steam.enable = false;
|
steam.enable = false;
|
||||||
sunshine.enable = true;
|
|
||||||
virtualization = {
|
virtualization = {
|
||||||
traefik.enable = true;
|
traefik.enable = true;
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
@@ -221,7 +220,6 @@
|
|||||||
minecraft.enable = false; #wont connect
|
minecraft.enable = false; #wont connect
|
||||||
|
|
||||||
sandbox.enable = false;
|
sandbox.enable = false;
|
||||||
sunshine.enable = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,6 +20,5 @@
|
|||||||
./novnc
|
./novnc
|
||||||
./minecraft
|
./minecraft
|
||||||
./sandbox
|
./sandbox
|
||||||
./sunshine
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -9,6 +9,5 @@
|
|||||||
./sddm
|
./sddm
|
||||||
./novnc
|
./novnc
|
||||||
./kdePlasma6
|
./kdePlasma6
|
||||||
./sunshine
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user