feat(hyprland): add hyprland to nixos modules and set relevant nvidia settings

This commit is contained in:
Mohammad Rafiq 2025-05-18 16:59:51 +08:00
parent 1bf0680ac4
commit 8ff864caed
No known key found for this signature in database
5 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{ config, lib, ... }:
{
imports = [
./windowManager.nix
];
options.desktop = {
windowManager = lib.pantheon.mkStrOption;
};
}

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
{
config = lib.mkMerge [
(lib.mkIf (config.desktop.windowManager == "hyprland") {
environment.variables = {
ELECTRON_OZONE_PLATFORM_HINT = "auto";
NIXOS_OZONE_WL = "1";
};
programs.hyprland = {
enable = true;
withUWSM = true;
};
})
];
}