From 9e6eeb653577868bb2e7aad2bebcc8062f60222c Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 11 Jul 2024 12:51:59 -0400 Subject: [PATCH] update config --- configuration.nix | 11 ++++++++--- hypr/hyprland.conf | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 8cefbef..07217eb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -13,6 +13,7 @@ # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.kernelParams = [ "nvidia_drm.fbdev=1" ]; # networking.hostName = "nixos"; # Define your hostname. # Pick only one of the below networking options. @@ -60,6 +61,7 @@ nodejs bun rustc + python3 # Music playerctl cava @@ -87,12 +89,14 @@ gcc cmake unzip + ffmpeg vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget inotify-tools killall neofetch # Hyprland + hyprcursor waybar swaynotificationcenter swww @@ -107,15 +111,17 @@ ]; fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "JetBrainsMono"]; }) ]; - hardware.opengl = { + hardware.graphics = { enable = true; extraPackages = with pkgs; [ nvidia-vaapi-driver ]; }; hardware.nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.stable; modesetting.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; + package = config.boot.kernelPackages.nvidiaPackages.stable; }; # Some programs need SUID wrappers, can be configured further or are @@ -137,7 +143,6 @@ steam = { enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play - dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers }; starship.enable = true; diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index c7db7e6..d318bd4 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -36,6 +36,9 @@ $lockScreen = hyprlock # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER +env = HYPRCURSOR_THEME,catpuccin-mocha-light-cursors +env = HYPRCURSOR_SIZE,24 + source = ~/.config/hypr/config/environments/nvidia.conf source = ~/.config/hypr/config/keybinds.conf source = ~/.config/hypr/config/rules.conf