diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 24ca8aa..d20d1a0 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -16,13 +16,19 @@ let }; in { - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; imports = [ # Include the results of the hardware scan. ./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; @@ -124,7 +130,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; @@ -249,6 +258,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 = { @@ -325,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 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;