diff --git a/modules/jellyfin.nix b/modules/jellyfin.nix deleted file mode 100644 index 39b00c1..0000000 --- a/modules/jellyfin.nix +++ /dev/null @@ -1,8 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ config, pkgs, ... }: - -{ - services.jellyfin = { - enable = true; - }; -} diff --git a/modules/moonlight.nix b/modules/moonlight.nix deleted file mode 100644 index fa6a913..0000000 --- a/modules/moonlight.nix +++ /dev/null @@ -1,8 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ pkgs, ... }: - -{ - environment.systemPackages = [ - pkgs.moonlight-qt - ]; -} diff --git a/modules/nvidia.nix b/modules/nvidia.nix deleted file mode 100644 index 73d9842..0000000 --- a/modules/nvidia.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ lib, config, pkgs, ... }: - -let - myIntelBusId = "PCI:0:2:0"; - myNvidiaBusId = "PCI:1:0:0"; - myNvidiaOffload = pkgs.writeShellScriptBin "nvidia-offload" '' - export __NV_PRIME_RENDER_OFFLOAD=1 - export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 - export __GLX_VENDOR_LIBRARY_NAME=nvidia - export __VK_LAYER_NV_optimus=NVIDIA_only - exec -a "$0" "$@" - ''; - -in { - # Blacklist the open source driver. - boot.blacklistedKernelModules = [ "nouveau" ]; - - # Add the offload script to the $PATH. - environment.systemPackages = [ myNvidiaOffload ]; - - # Configure XDG compliance. - environment.variables = { - __GL_SHADER_DISK_CACHE_PATH = "$XDG_CACHE_HOME/nv"; - CUDA_CACHE_PATH = "$XDG_CACHE_HOME/nv"; - }; - - # Enable the NVIDIA drivers. - services.xserver.videoDrivers = [ "nvidia" ]; - - # Fix screen tearing. - services.xserver.screenSection = '' - Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}" - Option "AllowIndirectGLXProtocol" "off" - Option "TripleBuffer" "on" - ''; - - # Fix graphical corruption on suspend. - hardware.nvidia.powerManagement.enable = true; - - # Configure `offload-mode'. - hardware.nvidia.prime = { - offload.enable = true; - intelBusId = myIntelBusId; - nvidiaBusId = myNvidiaBusId; - }; - - # Add OpenGL support. - hardware.opengl = { - enable = true; - driSupport = true; - driSupport32Bit = true; - extraPackages32 = with pkgs; [ - pkgsi686Linux.libva - intel-media-driver - vaapiIntel - ]; - }; - - # Create an external display setup. - specialisation = { - external-display.configuration = { - system.nixos.tags = [ "external-display" ]; - hardware.nvidia.prime.offload.enable = lib.mkForce false; - hardware.nvidia.powerManagement.enable = lib.mkForce false; - }; - }; - - # Add user to video group. - users.users.chris = { - extraGroups = [ "video" ]; - }; -} diff --git a/modules/teamviewer.nix b/modules/teamviewer.nix deleted file mode 100644 index ab1321c..0000000 --- a/modules/teamviewer.nix +++ /dev/null @@ -1,11 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ pkgs, ... }: - -{ - # NOTE: Neither of these are working! - # services.teamviewer.enable = true; - - # environment.systemPackages = [ - # pkgs.teamviewer - # ]; -}