1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

Revert "Add default configuration option to home-manager (#356)"

This reverts commit 67a4e3074e.
This commit is contained in:
bbedward
2025-10-09 13:53:27 -04:00
parent ecb9675e9c
commit bc23109f99

View File

@@ -6,7 +6,6 @@
... ...
}: let }: let
cfg = config.programs.dankMaterialShell; cfg = config.programs.dankMaterialShell;
jsonFormat = pkgs.formats.json { };
in { in {
options.programs.dankMaterialShell = with lib.types; { options.programs.dankMaterialShell = with lib.types; {
enable = lib.mkEnableOption "DankMaterialShell"; enable = lib.mkEnableOption "DankMaterialShell";
@@ -55,20 +54,6 @@ in {
quickshell = { quickshell = {
package = lib.mkPackageOption pkgs "quickshell" {}; package = lib.mkPackageOption pkgs "quickshell" {};
}; };
default = {
settings = lib.mkOption {
type = jsonFormat.type;
default = { };
description = "The default settings are only read if the settings.json file don't exist";
};
session = lib.mkOption {
type = jsonFormat.type;
default = { };
description = "The default session are only read if the session.json file don't exist";
};
};
plugins = lib.mkOption { plugins = lib.mkOption {
type = attrsOf (types.submodule ({ config, ... }: { type = attrsOf (types.submodule ({ config, ... }: {
options = { options = {
@@ -114,14 +99,6 @@ in {
Install.WantedBy = [ config.wayland.systemd.target ]; Install.WantedBy = [ config.wayland.systemd.target ];
}; };
xdg.configFile."DankMaterialShell/default-settings.json" = lib.mkIf (cfg.default.settings != { }) {
source = jsonFormat.generate "default-settings.json" cfg.default.settings;
};
xdg.stateFile."DankMaterialShell/default-session.json" = lib.mkIf (cfg.default.session != { }) {
source = jsonFormat.generate "default-session.json" cfg.default.session;
};
xdg.configFile = lib.mapAttrs' (name: plugin: { xdg.configFile = lib.mapAttrs' (name: plugin: {
name = "DankMaterialShell/plugins/${name}"; name = "DankMaterialShell/plugins/${name}";
value.source = plugin.src; value.source = plugin.src;