Skip to content

Commit

Permalink
feat(home-manager): add support for dunst (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrisota authored Apr 11, 2024
1 parent 259175f commit 9e71751
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@
},
"version": "765eb17d0268bf07c20ca439771153f8bc79444f"
},
"dunst": {
"cargoLocks": null,
"date": "2024-04-07",
"extract": null,
"name": "dunst",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "dunst",
"rev": "bfec91a5d0ab02a73a4615243feb5499d376831c",
"sha256": "sha256-xy99DpBrOKlP7DgKyPgbl4QGC+dnXnvkGlkIG0cmd2A=",
"type": "github"
},
"version": "bfec91a5d0ab02a73a4615243feb5499d376831c"
},
"fish": {
"cargoLocks": null,
"date": "2023-11-02",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@
};
date = "2024-03-23";
};
dunst = {
pname = "dunst";
version = "bfec91a5d0ab02a73a4615243feb5499d376831c";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "dunst";
rev = "bfec91a5d0ab02a73a4615243feb5499d376831c";
fetchSubmodules = false;
sha256 = "sha256-xy99DpBrOKlP7DgKyPgbl4QGC+dnXnvkGlkIG0cmd2A=";
};
date = "2024-04-07";
};
fish = {
pname = "fish";
version = "0ce27b518e8ead555dec34dd8be3df5bd75cff8e";
Expand Down
18 changes: 18 additions & 0 deletions modules/home-manager/dunst.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ config
, lib
, sources
, ...
}:
let
inherit (lib) ctp;
cfg = config.services.dunst.catppuccin;
enable = cfg.enable && config.services.dunst.enable;
in
{
options.services.dunst.catppuccin =
lib.ctp.mkCatppuccinOpt "dunst";

config.services.dunst = lib.mkIf enable {
settings = lib.ctp.fromINI (sources.dunst + /themes/${cfg.flavour}.conf);
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ fetch.github = "catppuccin/btop"
src.git = "https://github.com/catppuccin/delta.git"
fetch.github = "catppuccin/delta"

[dunst]
src.git = "https://github.com/catppuccin/dunst.git"
fetch.github = "catppuccin/dunst"

[fish]
src.git = "https://github.com/catppuccin/fish.git"
fetch.github = "catppuccin/fish"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ in
};

services = {
dunst = ctpEnable;
mako = ctpEnable;
polybar =
ctpEnable
Expand Down

0 comments on commit 9e71751

Please sign in to comment.