meta: Merge specializations with desktop

This makes sense since the specializations are desktop-centric.
This commit is contained in:
Donovan Glover 2024-04-06 08:30:32 -04:00
parent 0e07ad48f5
commit 8464d87cc9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 8 additions and 18 deletions

View File

@ -3,7 +3,7 @@
let
inherit (lib) mkEnableOption mkIf mkMerge;
inherit (config.modules.system) username;
inherit (cfg) japanese bloat wine;
inherit (cfg) japanese bloat wine gnome plasma;
inherit (builtins) attrValues;
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
@ -23,6 +23,8 @@ in
japanese = mkEnableOption "Japanese support (fcitx, anki, kanjidraw, etc.)";
bloat = mkEnableOption "GUI applications like Logseq";
wine = mkEnableOption "wine support";
gnome = mkEnableOption "GNOME specialization";
plasma = mkEnableOption "Plasma specialization";
};
config = {
@ -199,5 +201,10 @@ in
};
};
};
specialisation = {
gnome.configuration.imports = mkIf gnome [ ../specializations/gnome.nix ];
plasma.configuration.imports = mkIf plasma [ ../specializations/plasma.nix ];
};
};
}

View File

@ -1,17 +0,0 @@
{ 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 ];
};
};
}