feat(home-manager): add support for dunst (#104)

This commit is contained in:
Henri Sota 2024-04-11 06:40:42 +02:00 committed by GitHub
parent 259175ffd6
commit 9e71751d66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 55 additions and 0 deletions

View file

@ -99,6 +99,26 @@
}, },
"version": "765eb17d0268bf07c20ca439771153f8bc79444f" "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": { "fish": {
"cargoLocks": null, "cargoLocks": null,
"date": "2023-11-02", "date": "2023-11-02",

View file

@ -61,6 +61,18 @@
}; };
date = "2024-03-23"; 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 = { fish = {
pname = "fish"; pname = "fish";
version = "0ce27b518e8ead555dec34dd8be3df5bd75cff8e"; version = "0ce27b518e8ead555dec34dd8be3df5bd75cff8e";

View file

@ -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);
};
}

View file

@ -18,6 +18,10 @@ fetch.github = "catppuccin/btop"
src.git = "https://github.com/catppuccin/delta.git" src.git = "https://github.com/catppuccin/delta.git"
fetch.github = "catppuccin/delta" fetch.github = "catppuccin/delta"
[dunst]
src.git = "https://github.com/catppuccin/dunst.git"
fetch.github = "catppuccin/dunst"
[fish] [fish]
src.git = "https://github.com/catppuccin/fish.git" src.git = "https://github.com/catppuccin/fish.git"
fetch.github = "catppuccin/fish" fetch.github = "catppuccin/fish"

View file

@ -85,6 +85,7 @@ in
}; };
services = { services = {
dunst = ctpEnable;
mako = ctpEnable; mako = ctpEnable;
polybar = polybar =
ctpEnable ctpEnable