sorta refactor
This commit is contained in:
@@ -1,25 +1,13 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
perSystem,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.desktop.dms;
|
||||
# inherit (config.lib.stylix) colors;
|
||||
in {
|
||||
imports = with inputs; [
|
||||
dms.homeModules.dankMaterialShell.default
|
||||
dms.homeModules.dankMaterialShell.niri
|
||||
imports = [
|
||||
./dconf.nix
|
||||
./mimeapps.nix
|
||||
./packages.nix
|
||||
./programs
|
||||
# ./programs/niri.nix
|
||||
# ./programs/satty.nix
|
||||
# ./programs/wl-kbptr.nix
|
||||
./services.nix
|
||||
./stylix.nix
|
||||
];
|
||||
options = {
|
||||
desktop.dms.enable =
|
||||
mkEnableOption "enable DankMaterialShell";
|
||||
};
|
||||
config = let
|
||||
importWithArgs = file: import file {inherit config inputs lib perSystem pkgs importWithArgs;};
|
||||
in
|
||||
mkIf cfg.enable (importWithArgs ./config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user