{ config, inputs, lib, osConfig, perSystem, pkgs, ... }: with lib; let cfg = config.desktop; in { imports = [ # ./common ./cosmic # ./dms # ./gnome # ./niri # ./plasma ] ++ (with inputs; [ dms.homeModules.dank-material-shell dms.homeModules.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)) ]; }