nix-config/modules/specializations.nix
Donovan Glover ea4c8d16dd
specializations: Make opt-in with mkEnableOption
Specializations basically double the build time for each one added, so
requiring users to explicitly enable it means quicker build times for
those that prefer Hyprland (which is easier to configure declaratively).
2024-04-03 02:46:42 -04:00

18 lines
379 B
Nix

{ config, lib, ... }:
let
cfg = config.modules.specializations;
in
{
options.modules.specializations = {
enable = lib.mkEnableOption "specializations";
};
config = lib.mkIf cfg.enable {
specialisation = {
gnome.configuration.imports = [ ../specializations/gnome.nix ];
plasma.configuration.imports = [ ../specializations/plasma.nix ];
};
};
}