snowhawk: hyprland

This commit is contained in:
Zynh Ludwig 2025-03-19 20:27:42 -07:00
parent 189061328b
commit 483c916dfa
2 changed files with 21 additions and 2 deletions
hosts/snowhawk
modules

View file

@ -57,6 +57,16 @@
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }]; home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
}; };
hyprland.configuration = {
environment.etc."specialisation".text = "hyprland";
hardware.nvidia.open = lib.mkForce true;
snowhawk.hyprland = {
enable = true;
nvidia = true;
};
};
plasma.configuration = { plasma.configuration = {
environment.etc."specialisation".text = "plasma"; environment.etc."specialisation".text = "plasma";

View file

@ -6,6 +6,8 @@ in
{ {
options.snowhawk.hyprland = { options.snowhawk.hyprland = {
enable = lib.mkEnableOption "hyprland"; enable = lib.mkEnableOption "hyprland";
nvidia = lib.mkEnableOption "hyprland nvidia tweaks";
}; };
config = lib.mkIf cfg.enable (lib.mkMerge [ config = lib.mkIf cfg.enable (lib.mkMerge [
@ -112,7 +114,7 @@ in
) )
# Anyrun # Anyrun
{ (lib.mkIf false {
home-manager.sharedModules = [{ home-manager.sharedModules = [{
imports = [ imports = [
inputs.anyrun.homeManagerModules.default inputs.anyrun.homeManagerModules.default
@ -173,6 +175,13 @@ in
}; };
}; };
}]; }];
} })
(lib.mkIf cfg.nvidia {
environment.variables = {
LIBVA_DRIVER_NAME = "nvidia";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
};
})
]); ]);
} }