diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix index f7a602c..8288fd4 100644 --- a/modules/hardware/nvidia.nix +++ b/modules/hardware/nvidia.nix @@ -19,6 +19,7 @@ in { hardware.graphics = { enable = true; enable32Bit = true; + extraPackages = with pkgs; [ nvidia-vaapi-driver ]; }; } else { hardware.opengl = { @@ -28,7 +29,8 @@ in { }; }; in lib.mkIf cfg.enable (lib.recursiveUpdate nvidiaOption { - boot.kernelParams = [ "nvidia-drm.fbdev=1" ]; + boot.kernelParams = + [ "nvidia-drm.fbdev=1" "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.deviceSection = '' Option "Coolbits" "24" @@ -72,9 +74,19 @@ in { #}; }; + environment.systemPackages = with pkgs; [ + vaapiVdpau + libvdpau-va-gl + libva + libva-utils + ]; + systemd.services.nvpl = lib.mkIf cfg.powerLimit.enable { - description = "Increase GPU power limit to ${toString cfg.powerLimit.wattage} watts"; - script = "/run/current-system/sw/bin/nvidia-smi -pl=${toString cfg.powerLimit.wattage}"; + description = + "Increase GPU power limit to ${toString cfg.powerLimit.wattage} watts"; + script = "/run/current-system/sw/bin/nvidia-smi -pl=${ + toString cfg.powerLimit.wattage + }"; wantedBy = [ "multi-user.target" ]; }; }); diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix index 1bfed1f..4e29296 100644 --- a/modules/services/syncthing.nix +++ b/modules/services/syncthing.nix @@ -94,6 +94,11 @@ in { path = "${cfg.basePath}/no_backup"; devices = [ "kop-pc" "server" "laptop" "mini-pc" "mini-pc-proxmox" ]; }; + folders."emu" = { + id = "emu"; + path = "${cfg.basePath}/emu"; + devices = [ "kop-pc" "server" "mini-pc" "mini-pc-proxmox" ]; + }; }; }; diff --git a/systems/amd-server/configuration.nix b/systems/amd-server/configuration.nix index e08d398..dc94dcb 100644 --- a/systems/amd-server/configuration.nix +++ b/systems/amd-server/configuration.nix @@ -27,6 +27,9 @@ ssd.enable = true; wooting.enable = true; }; + misc = { + docker.enable = true; + }; graphical = { audio.enable = true; sddm.enable = true;