diff --git a/home/default.nix b/home/default.nix index 83c2aad..62b31bf 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,6 +11,7 @@ ./programs/tmux ./programs/dunst ./programs/kitty + ./scripts ./zsh ./packages ./hyprland diff --git a/home/hyprland/hyprland.nix b/home/hyprland/hyprland.nix index 3847c64..cde6c66 100644 --- a/home/hyprland/hyprland.nix +++ b/home/hyprland/hyprland.nix @@ -31,10 +31,10 @@ }; env = [ - # "LIBVA_DRIVER_NAME,nvidia" - # "XDG_SESSION_TYPE,wayland" - # "GBM_BACKEND,nvidia-drm" - # "__GLX_VENDOR_LIBRARY_NAME,nvidia" + "LIBVA_DRIVER_NAME,nvidia" + "XDG_SESSION_TYPE,wayland" + "GBM_BACKEND,nvidia-drm" + "__GLX_VENDOR_LIBRARY_NAME,nvidia" "WLR_NO_HARDWARE_CURSORS,1" ]; diff --git a/home/scripts/default.nix b/home/scripts/default.nix new file mode 100644 index 0000000..80b4a1d --- /dev/null +++ b/home/scripts/default.nix @@ -0,0 +1,6 @@ +{ config, ... }: { + home.file.".local/bin/hl-no-opacity" = { + source = config.lib.file.mkOutOfStoreSymlink ./. + "/hl-no-opacity.sh"; + executable = true; + }; +} diff --git a/home/scripts/hl-no-opacity.sh b/home/scripts/hl-no-opacity.sh new file mode 100644 index 0000000..96e3216 --- /dev/null +++ b/home/scripts/hl-no-opacity.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +addr=$(hyprctl activewindow -j|jq -r .address) +hyprctl setprop "address:$addr" alpha 1 lock diff --git a/hosts/gunter/configuration.nix b/hosts/gunter/configuration.nix index 2658868..5ef500b 100644 --- a/hosts/gunter/configuration.nix +++ b/hosts/gunter/configuration.nix @@ -12,6 +12,10 @@ boot.loader.systemd-boot = { enable = true; }; boot.loader.efi = { canTouchEfiVariables = true; }; + boot.extraModprobeConfig = '' + options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3" + ''; + # Networking stuff networking.hostName = "gunter"; # Define your hostname. networking.networkmanager.enable = true; @@ -52,6 +56,7 @@ services.xserver.enable = true; services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.displayManager.gdm.wayland = true; + services.xserver.displayManager.lightdm.enable = false; programs.hyprland = { enable = true; xwayland.enable = true;