Add shell script test
This commit is contained in:
parent
9f5f770409
commit
35ada16dcb
@ -11,6 +11,7 @@
|
|||||||
./programs/tmux
|
./programs/tmux
|
||||||
./programs/dunst
|
./programs/dunst
|
||||||
./programs/kitty
|
./programs/kitty
|
||||||
|
./scripts
|
||||||
./zsh
|
./zsh
|
||||||
./packages
|
./packages
|
||||||
./hyprland
|
./hyprland
|
||||||
|
@ -31,10 +31,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
# "LIBVA_DRIVER_NAME,nvidia"
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
# "XDG_SESSION_TYPE,wayland"
|
"XDG_SESSION_TYPE,wayland"
|
||||||
# "GBM_BACKEND,nvidia-drm"
|
"GBM_BACKEND,nvidia-drm"
|
||||||
# "__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||||
"WLR_NO_HARDWARE_CURSORS,1"
|
"WLR_NO_HARDWARE_CURSORS,1"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
6
home/scripts/default.nix
Normal file
6
home/scripts/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
home.file.".local/bin/hl-no-opacity" = {
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink ./. + "/hl-no-opacity.sh";
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
|
}
|
4
home/scripts/hl-no-opacity.sh
Normal file
4
home/scripts/hl-no-opacity.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
addr=$(hyprctl activewindow -j|jq -r .address)
|
||||||
|
hyprctl setprop "address:$addr" alpha 1 lock
|
@ -12,6 +12,10 @@
|
|||||||
boot.loader.systemd-boot = { enable = true; };
|
boot.loader.systemd-boot = { enable = true; };
|
||||||
boot.loader.efi = { canTouchEfiVariables = 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 stuff
|
||||||
networking.hostName = "gunter"; # Define your hostname.
|
networking.hostName = "gunter"; # Define your hostname.
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
@ -52,6 +56,7 @@
|
|||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
services.xserver.displayManager.gdm.wayland = true;
|
services.xserver.displayManager.gdm.wayland = true;
|
||||||
|
services.xserver.displayManager.lightdm.enable = false;
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user