Files
nix-config-ryan4yin/home/linux/desktop/hyprland/default.nix
2023-12-24 20:56:44 +08:00

32 lines
483 B
Nix

{
pkgs,
config,
lib,
anyrun,
...
} @ args:
with lib; let
cfg = config.modules.desktop.hyprland;
in {
imports = [
anyrun.homeManagerModules.default
./nvidia.nix
];
options.modules.desktop.hyprland = {
enable = mkEnableOption "hyprland compositor";
};
config = mkIf cfg.enable (
mkMerge
(map
(path: import path args)
[
./hyprland.nix
./packages.nix
./anyrun.nix
./wayland-apps.nix
])
);
}