mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
dunst: make icon_path extensible (#2097)
This commit is contained in:
parent
a01fe9f81e
commit
3aa479d551
1 changed files with 17 additions and 6 deletions
|
@ -78,7 +78,15 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = with types; attrsOf (attrsOf eitherStrBoolIntList);
|
type = types.submodule {
|
||||||
|
freeformType = with types; attrsOf (attrsOf eitherStrBoolIntList);
|
||||||
|
options = {
|
||||||
|
global.icon_path = mkOption {
|
||||||
|
type = types.separatedString ":";
|
||||||
|
description = "Paths where dunst will look for icons.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
default = { };
|
default = { };
|
||||||
description = "Configuration written to ~/.config/dunst/dunstrc";
|
description = "Configuration written to ~/.config/dunst/dunstrc";
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
|
@ -138,11 +146,14 @@ in {
|
||||||
"status"
|
"status"
|
||||||
"stock"
|
"stock"
|
||||||
];
|
];
|
||||||
in concatStringsSep ":" (concatMap (theme:
|
|
||||||
concatMap (basePath:
|
mkPath = { basePath, theme, category }:
|
||||||
map (category:
|
"${basePath}/share/icons/${theme.name}/${theme.size}/${category}";
|
||||||
"${basePath}/share/icons/${theme.name}/${theme.size}/${category}")
|
in concatMapStringsSep ":" mkPath (cartesianProductOfSets {
|
||||||
categories) basePaths) themes);
|
basePath = basePaths;
|
||||||
|
theme = themes;
|
||||||
|
category = categories;
|
||||||
|
});
|
||||||
|
|
||||||
systemd.user.services.dunst = {
|
systemd.user.services.dunst = {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
|
Loading…
Reference in a new issue