feat(hyprland): use final package
This commit is contained in:
parent
8ea4c31a1c
commit
c557367aaf
6 changed files with 39 additions and 23 deletions
home/hyprland
|
@ -12,6 +12,15 @@
|
|||
|
||||
gset = pkgs.gsettings-desktop-schemas;
|
||||
polkit = pkgs.plasma5Packages.polkit-kde-agent;
|
||||
|
||||
mainPkg =
|
||||
if osConfig.hardware.nvidia.modesetting.enable
|
||||
then {
|
||||
hyprland = pkgs.hyprland;
|
||||
}
|
||||
else {
|
||||
hyprland = hyprland.packages.x86_64-linux.default;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
./theme.nix
|
||||
|
@ -25,7 +34,7 @@ in {
|
|||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = hyprland.packages.x86_64-linux.default;
|
||||
package = mainPkg.hyprland;
|
||||
enableNvidiaPatches = osConfig.hardware.nvidia.modesetting.enable;
|
||||
|
||||
plugins =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue