From 6f23f32a31ae17571ec085f0289793d09ee67555 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 24 Mar 2025 23:04:23 +1100 Subject: [PATCH 1/5] enable nix command & flakes... scarry --- nixos/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 24ca8aa..7632997 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -16,7 +16,10 @@ let }; in { - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; imports = [ # Include the results of the hardware scan. From 071e678042dc5b2fdea5cd72d88f68b572ab4c8e Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 24 Mar 2025 23:05:05 +1100 Subject: [PATCH 2/5] Enable sunshine service --- nixos/configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7632997..03ae012 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -127,7 +127,10 @@ in # Enable automatic login for the user. services.displayManager.autoLogin.enable = true; services.displayManager.autoLogin.user = "buymymojo"; - programs.java = { enable = true; package = pkgs.zulu23; }; + programs.java = { + enable = true; + package = pkgs.zulu23; + }; programs.firefox.enable = true; programs.thunderbird.enable = true; @@ -252,6 +255,13 @@ in services.flatpak.enable = true; services.pcscd.enable = true; + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; + virtualisation.docker.enable = true; virtualisation.docker.storageDriver = "btrfs"; # virtualisation.docker.rootless = { From 30c153c500137d196dd78619672c9021c6baae6c Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 24 Mar 2025 23:43:25 +1100 Subject: [PATCH 3/5] Change to the latest kernel --- nixos/configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 03ae012..b7009f4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -26,6 +26,9 @@ in ./hardware-configuration.nix ]; + # Use the latest linux Kernel + boot.kernelPackages = pkgs.linuxPackages_latest; + # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; From 5f3e13c1eab5952220d6fa4484ebd3c138493ea6 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 24 Mar 2025 23:43:56 +1100 Subject: [PATCH 4/5] Add amdvlk driver for use with upscaling software --- nixos/hardware-configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index ff15cde..1f5bad1 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -194,6 +194,16 @@ graphics = { enable = true; enable32Bit = true; + + # === amdvlk driver === + extraPackages = with pkgs; [ + amdvlk + ]; + extraPackages32 = with pkgs; [ + driversi686Linux.amdvlk + ]; + # === amdvlk driver === + }; openrazer.enable = true; From f26253278bc65692a33e58e3b259ae46d2326766 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 24 Mar 2025 23:53:41 +1100 Subject: [PATCH 5/5] Prefer RADV driver --- nixos/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index b7009f4..d20d1a0 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -341,6 +341,11 @@ in ''; }; + # === Prefer RADV driver === + environment.variables = { + AMD_VULKAN_ICD = "RADV"; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave