Skip to content

Commit 9e71751

Browse files
authored
feat(home-manager): add support for dunst (#104)
1 parent 259175f commit 9e71751

File tree

5 files changed

+55
-0
lines changed

5 files changed

+55
-0
lines changed

_sources/generated.json

+20
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,26 @@
9999
},
100100
"version": "765eb17d0268bf07c20ca439771153f8bc79444f"
101101
},
102+
"dunst": {
103+
"cargoLocks": null,
104+
"date": "2024-04-07",
105+
"extract": null,
106+
"name": "dunst",
107+
"passthru": null,
108+
"pinned": false,
109+
"src": {
110+
"deepClone": false,
111+
"fetchSubmodules": false,
112+
"leaveDotGit": false,
113+
"name": null,
114+
"owner": "catppuccin",
115+
"repo": "dunst",
116+
"rev": "bfec91a5d0ab02a73a4615243feb5499d376831c",
117+
"sha256": "sha256-xy99DpBrOKlP7DgKyPgbl4QGC+dnXnvkGlkIG0cmd2A=",
118+
"type": "github"
119+
},
120+
"version": "bfec91a5d0ab02a73a4615243feb5499d376831c"
121+
},
102122
"fish": {
103123
"cargoLocks": null,
104124
"date": "2023-11-02",

_sources/generated.nix

+12
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@
6161
};
6262
date = "2024-03-23";
6363
};
64+
dunst = {
65+
pname = "dunst";
66+
version = "bfec91a5d0ab02a73a4615243feb5499d376831c";
67+
src = fetchFromGitHub {
68+
owner = "catppuccin";
69+
repo = "dunst";
70+
rev = "bfec91a5d0ab02a73a4615243feb5499d376831c";
71+
fetchSubmodules = false;
72+
sha256 = "sha256-xy99DpBrOKlP7DgKyPgbl4QGC+dnXnvkGlkIG0cmd2A=";
73+
};
74+
date = "2024-04-07";
75+
};
6476
fish = {
6577
pname = "fish";
6678
version = "0ce27b518e8ead555dec34dd8be3df5bd75cff8e";

modules/home-manager/dunst.nix

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ config
2+
, lib
3+
, sources
4+
, ...
5+
}:
6+
let
7+
inherit (lib) ctp;
8+
cfg = config.services.dunst.catppuccin;
9+
enable = cfg.enable && config.services.dunst.enable;
10+
in
11+
{
12+
options.services.dunst.catppuccin =
13+
lib.ctp.mkCatppuccinOpt "dunst";
14+
15+
config.services.dunst = lib.mkIf enable {
16+
settings = lib.ctp.fromINI (sources.dunst + /themes/${cfg.flavour}.conf);
17+
};
18+
}

nvfetcher.toml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ fetch.github = "catppuccin/btop"
1818
src.git = "https://github.com/catppuccin/delta.git"
1919
fetch.github = "catppuccin/delta"
2020

21+
[dunst]
22+
src.git = "https://github.com/catppuccin/dunst.git"
23+
fetch.github = "catppuccin/dunst"
24+
2125
[fish]
2226
src.git = "https://github.com/catppuccin/fish.git"
2327
fetch.github = "catppuccin/fish"

test.nix

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ in
8585
};
8686

8787
services = {
88+
dunst = ctpEnable;
8889
mako = ctpEnable;
8990
polybar =
9091
ctpEnable

0 commit comments

Comments
 (0)