sorta refactor

This commit is contained in:
2025-12-25 23:41:24 +02:00
parent 68f7fe03e7
commit 063e32aa73
52 changed files with 1159 additions and 1996 deletions
+37 -9
View File
@@ -1,11 +1,39 @@
{
imports = [
# ./common
./cosmic
./dms
./gnome
./hyprland
./niri
./plasma
];
config,
inputs,
lib,
osConfig,
perSystem,
pkgs,
...
}:
with lib; let
cfg = config.desktop;
in {
imports =
[
# ./common
./cosmic
# ./dms
# ./gnome
./hyprland
./niri
./plasma
]
++ (with inputs; [
dms.homeModules.dankMaterialShell.default
dms.homeModules.dankMaterialShell.niri
]);
options = {
desktop.dms.enable = mkEnableOption "enable DankMaterialShell";
desktop.gnome.enable = mkEnableOption "enable gnome desktop";
};
config = let
importWithArgs = file: import file {inherit config inputs lib perSystem pkgs osConfig importWithArgs;};
in
lib.mergeAttrsList [
(mkIf config.desktop.dms.enable (importWithArgs ./dms/module.nix))
# (mkIf cfg.dms.enable (importWithArgs ./dms/module.nix))
# (mkIf cfg.gnome.enable (importWithArgs ./gnome))
];
}