mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:08:25 +02:00
32 lines
483 B
Nix
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
|
|
])
|
|
);
|
|
}
|