From 01781658b87f573f05e1fa3f48be810656b93d84 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 9 Feb 2023 10:44:49 +0530 Subject: working config --- hosts/myrtle/configuration.nix | 47 +++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 19 deletions(-) (limited to 'hosts') diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 74f4861..f0bcb81 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -12,8 +12,8 @@ boot.kernelPackages = pkgs.linuxPackages_latest; boot.blacklistedKernelModules = [ "nouveau" ]; boot.kernelParams = [ - "i915.modeset=0" - # "intel_pstate=disable" + # "i915.modeset=0" + # "intel_pstate=disable" ]; networking = { @@ -106,14 +106,14 @@ nvidia = { prime = { offload.enable = true; - intelBusId = "PCI:00:02:0"; - nvidiaBusId = "PCI:01:00:0"; + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; }; package = config.boot.kernelPackages.nvidiaPackages.latest; - powerManagement = { - enable = true; - finegrained = true; - }; + # powerManagement = { + # enable = true; + # finegrained = true; + # }; }; }; @@ -126,22 +126,31 @@ xserver = { enable = true; layout = "us"; - videoDrivers = [ "nvidia" "intel" ]; + videoDrivers = [ "nvidia" ]; displayManager.startx.enable = true; - dpi = 192; libinput.enable = true; - serverLayoutSection = '' - Screen "Screen-nvidia[0]" - ''; - config = lib.mkAfter '' - Section "Screen" - Identifier "Screen-nvidia[0]" - Device "Device-nvidia[0]" - EndSection + dpi = 192; + screenSection = '' + Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}" + Option "AllowIndirectGLXProtocol" "off" + Option "TripleBuffer" "on" ''; + # serverLayoutSection = lib.mkAfter '' + # Screen 0 "Screen-nvidia[0]" + # ''; + # config = lib.mkAfter '' + # Section "Screen" + # Identifier "Screen-nvidia[0]" + # Device "Device-nvidia[0]" + # EndSection + # ''; }; - openssh.enable = true; + openssh = { + enable = true; + forwardX11 = true; + allowSFTP = true; + }; asusd = { enable = true; -- cgit v1.2.3