Add shell script test

This commit is contained in:
Torjus Håkestad 2024-03-02 23:25:58 +01:00
parent 9f5f770409
commit 35ada16dcb
5 changed files with 20 additions and 4 deletions

View File

@ -11,6 +11,7 @@
./programs/tmux
./programs/dunst
./programs/kitty
./scripts
./zsh
./packages
./hyprland

View File

@ -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"
];

6
home/scripts/default.nix Normal file
View File

@ -0,0 +1,6 @@
{ config, ... }: {
home.file.".local/bin/hl-no-opacity" = {
source = config.lib.file.mkOutOfStoreSymlink ./. + "/hl-no-opacity.sh";
executable = true;
};
}

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
addr=$(hyprctl activewindow -j|jq -r .address)
hyprctl setprop "address:$addr" alpha 1 lock

View File

@ -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;