feat: environment variables for wayland & nvidia

This commit is contained in:
Ryan Yin
2025-08-20 12:35:14 +08:00
parent 2b914efbb1
commit 21090c93e8
11 changed files with 60 additions and 78 deletions

View File

@@ -9,10 +9,6 @@ let
cfg = config.modules.desktop.hyprland;
in
{
imports = [
./options
];
options.modules.desktop.hyprland = {
enable = mkEnableOption "hyprland compositor";
settings = lib.mkOption {
@@ -38,14 +34,11 @@ in
};
};
config = mkIf cfg.enable (
mkMerge (
[
{
wayland.windowManager.hyprland.settings = cfg.settings;
}
]
++ (import ./values args)
)
);
config = mkIf cfg.enable (mkMerge ([
{
wayland.windowManager.hyprland.settings = cfg.settings;
}
(import ./hyprland.nix args)
(import ./xdg.nix args)
]));
}