From 2f6af8c9ae26fdb511e13ace3fe2234e363367e1 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Mon, 17 Jun 2024 11:49:58 +0200 Subject: [PATCH] Added sunshine configuration --- hosts/desktop/default.nix | 1 + hosts/laptop/home.nix | 3 ++- modules/home/desktop/hyprland/default.nix | 9 ++++++++- modules/system/programs/sunshine.nix | 11 +++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 modules/system/programs/sunshine.nix diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index da039ac..dee5f5b 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -16,6 +16,7 @@ ../../modules/system/utils/garbage-collection.nix ../../modules/system/utils/locale.nix ../../modules/system/utils/printing.nix + ../../modules/system/programs/sunshine.nix ]; nix.settings = { diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index d9b172f..174d628 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -25,9 +25,10 @@ kdenlive gthumb unstable.arduino-ide - moonlight-qt unstable.prismlauncher unstable.joplin-desktop + + unstable.moonlight-qt ]; home.stateVersion = "24.05"; diff --git a/modules/home/desktop/hyprland/default.nix b/modules/home/desktop/hyprland/default.nix index bc15426..41b38d8 100644 --- a/modules/home/desktop/hyprland/default.nix +++ b/modules/home/desktop/hyprland/default.nix @@ -24,7 +24,13 @@ wayland.windowManager.hyprland = { enable = true; settings = { - monitor = if hostName == "xv-laptop" then ",preferred,auto,1.333" else ",preferred,auto,auto"; + monitor = if hostName == "xv-laptop" then [ + "eDP-1,preferred,3840x0,1.333" + "DP-10,preferred,0x0,1" + "DP-9,preferred,1920x0,1" + ] else [ + ",preferred,auto,auto" + ]; exec-once = [ "waybar" @@ -67,6 +73,7 @@ misc = { vfr = "true"; + vrr = 2; force_default_wallpaper = "0"; }; diff --git a/modules/system/programs/sunshine.nix b/modules/system/programs/sunshine.nix new file mode 100644 index 0000000..6e9cc8b --- /dev/null +++ b/modules/system/programs/sunshine.nix @@ -0,0 +1,11 @@ +{ ..., pkgs }: + +{ + services.sunshine = { + enable = true; + package = pkgs.unstable.sunshine; + autostart = true; + capSysAdmin = true; + openFirewall = true; + }; +}