From 42bc49d716919c8311ac70a7808156494eb5de42 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 4 Oct 2023 23:14:58 +0200 Subject: Improvements --- host/Rory-desktop/configuration.nix | 63 +++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 3 deletions(-) (limited to 'host') diff --git a/host/Rory-desktop/configuration.nix b/host/Rory-desktop/configuration.nix index 55ee3a8..6d7f3d0 100644 --- a/host/Rory-desktop/configuration.nix +++ b/host/Rory-desktop/configuration.nix @@ -37,7 +37,7 @@ prefixLength = 24; } ]; - useDHCP = true; + # useDHCP = true; }; time.timeZone = "Europe/Brussels"; @@ -46,11 +46,11 @@ services = { xserver = { enable = true; - videoDrivers = [ "intel" ]; + #videoDrivers = [ "intel" ]; desktopManager.gnome.enable = true; libinput.enable = true; layout = "us"; - modules = [ pkgs.xorg.xf86videointel ]; + #modules = [ pkgs.xorg.xf86videointel ]; }; gnome = { core-developer-tools.enable = false; @@ -147,8 +147,28 @@ zsh-you-should-use zsh-syntax-highlighting zsh-completions + + # - IDEs + jetbrains-toolbox + dbeaver + insomnia + + #games + osu-lazer-bin + #steam + steam-run + steam-acf ]; + programs.steam.enable = true; + programs.steam.gamescopeSession.enable = true; + + environment.gnome.excludePackages = [ + pkgs.orca + pkgs.gnome-tour + pkgs.gnome-user-docs + ]; + fonts.fonts = with pkgs; [ (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) ]; @@ -166,6 +186,43 @@ sudo.wheelNeedsPassword = false; }; + hardware.opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; + + # Load nvidia driver for Xorg and Wayland + services.xserver.videoDrivers = ["nvidia"]; + + hardware.nvidia = { + + # Modesetting is required. + modesetting.enable = true; + + # Nvidia power management. Experimental, and can cause sleep/suspend to fail. + powerManagement.enable = false; + # Fine-grained power management. Turns off GPU when not in use. + # Experimental and only works on modern Nvidia GPUs (Turing or newer). + powerManagement.finegrained = false; + + # Use the NVidia open source kernel module (not to be confused with the + # independent third-party "nouveau" open source driver). + # Support is limited to the Turing and later architectures. Full list of + # supported GPUs is at: + # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus + # Only available from driver 515.43.04+ + # Do not disable this unless your GPU is unsupported or if you have a good reason to. + open = true; + + # Enable the Nvidia settings menu, + # accessible via `nvidia-settings`. + nvidiaSettings = true; + + # Optionally, you may need to select the appropriate driver version for your specific GPU. + package = config.boot.kernelPackages.nvidiaPackages.stable; + }; + system.stateVersion = "22.11"; # DO NOT EDIT! } -- cgit 1.4.1