mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
meta: Merge specializations with desktop
This makes sense since the specializations are desktop-centric.
This commit is contained in:
parent
0e07ad48f5
commit
8464d87cc9
@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkIf mkMerge;
|
inherit (lib) mkEnableOption mkIf mkMerge;
|
||||||
inherit (config.modules.system) username;
|
inherit (config.modules.system) username;
|
||||||
inherit (cfg) japanese bloat wine;
|
inherit (cfg) japanese bloat wine gnome plasma;
|
||||||
inherit (builtins) attrValues;
|
inherit (builtins) attrValues;
|
||||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
||||||
|
|
||||||
@ -23,6 +23,8 @@ in
|
|||||||
japanese = mkEnableOption "Japanese support (fcitx, anki, kanjidraw, etc.)";
|
japanese = mkEnableOption "Japanese support (fcitx, anki, kanjidraw, etc.)";
|
||||||
bloat = mkEnableOption "GUI applications like Logseq";
|
bloat = mkEnableOption "GUI applications like Logseq";
|
||||||
wine = mkEnableOption "wine support";
|
wine = mkEnableOption "wine support";
|
||||||
|
gnome = mkEnableOption "GNOME specialization";
|
||||||
|
plasma = mkEnableOption "Plasma specialization";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -199,5 +201,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
specialisation = {
|
||||||
|
gnome.configuration.imports = mkIf gnome [ ../specializations/gnome.nix ];
|
||||||
|
plasma.configuration.imports = mkIf plasma [ ../specializations/plasma.nix ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user