diff --git a/modules/specializations.nix b/modules/specializations.nix index 6e05305e..6c6f661c 100644 --- a/modules/specializations.nix +++ b/modules/specializations.nix @@ -1,11 +1,17 @@ -{ - specialisation = { - gnome.configuration.imports = [ - ../specializations/gnome.nix - ]; +{ config, lib, ... }: - plasma.configuration.imports = [ - ../specializations/plasma.nix - ]; +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 ]; + }; }; }