1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

nix: let paths be used instead of only packages in plugins (#988)

This commit is contained in:
Lucas
2025-12-11 19:57:22 -03:00
committed by GitHub
parent 5c3346aa9d
commit 89dcd72d70
3 changed files with 9 additions and 4 deletions

View File

@@ -72,10 +72,10 @@ in
};
xdg.configFile = lib.mkMerge [
(lib.mapAttrs' (name: plugin: {
(lib.mapAttrs' (name: value: {
name = "DankMaterialShell/plugins/${name}";
value.source = plugin.src;
}) (lib.filterAttrs (n: v: v.enable) cfg.plugins))
inherit value;
}) common.plugins)
{
"DankMaterialShell/default-settings.json" = lib.mkIf (cfg.default.settings != { }) {
source = jsonFormat.generate "default-settings.json" cfg.default.settings;

View File

@@ -39,6 +39,11 @@ in
environment.systemPackages = [ cfg.quickshell.package ] ++ common.packages;
environment.etc = lib.mapAttrs' (name: value: {
name = "xdg/quickshell/dms-plugins/${name}";
inherit value;
}) common.plugins;
services.power-profiles-daemon.enable = lib.mkDefault true;
services.accounts-daemon.enable = lib.mkDefault true;
};

View File

@@ -77,7 +77,7 @@ in
description = "Whether to enable this plugin";
};
src = lib.mkOption {
type = types.package;
type = types.either types.package types.path;
description = "Source of the plugin package or path";
};
};