Skip to content

Commit b60aab8

Browse files
committed
dunst: add option to specify configuration file path
1 parent bb4ae74 commit b60aab8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

modules/services/dunst.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ in {
7171
description = "Command line options given to dunst.";
7272
};
7373

74+
configPath = mkOption {
75+
type = types.str;
76+
default = "${config.xdg.configHome}/dunst/dunstrc";
77+
defaultText = "$XDG_CONFIG_HOME/dunst/dunstrc";
78+
description = "Path to dunst configuration file.";
79+
};
80+
7481
iconTheme = mkOption {
7582
type = themeType;
7683
default = hicolorTheme;
@@ -169,7 +176,7 @@ in {
169176
}
170177

171178
(mkIf (cfg.settings != { }) {
172-
xdg.configFile."dunst/dunstrc" = {
179+
home.file."${cfg.configPath}" = {
173180
text = toDunstIni cfg.settings;
174181
onChange = ''
175182
pkillVerbose=""

0 commit comments

Comments
 (0)