mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
ea4c8d16dd
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).
18 lines
379 B
Nix
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 ];
|
|
};
|
|
};
|
|
}
|