From 9877f05604b98e79bc9283fdd27f9b27bff68df1 Mon Sep 17 00:00:00 2001 From: Henri Sota Date: Wed, 10 Apr 2024 09:02:46 +0200 Subject: [PATCH] feat(home-manager): add support for dunst --- _sources/generated.json | 20 ++++++++++++++++++++ _sources/generated.nix | 12 ++++++++++++ modules/home-manager/dunst.nix | 18 ++++++++++++++++++ nvfetcher.toml | 4 ++++ test.nix | 1 + 5 files changed, 55 insertions(+) create mode 100644 modules/home-manager/dunst.nix diff --git a/_sources/generated.json b/_sources/generated.json index 9773d807..e17f1945 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -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", diff --git a/_sources/generated.nix b/_sources/generated.nix index 546958a8..d68a5717 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -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"; diff --git a/modules/home-manager/dunst.nix b/modules/home-manager/dunst.nix new file mode 100644 index 00000000..c82ddaae --- /dev/null +++ b/modules/home-manager/dunst.nix @@ -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); + }; +} diff --git a/nvfetcher.toml b/nvfetcher.toml index 238932fd..005d1e8d 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -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" diff --git a/test.nix b/test.nix index 180c805f..9b3879d5 100644 --- a/test.nix +++ b/test.nix @@ -84,6 +84,7 @@ in }; services = { + dunst = ctpEnable; mako = ctpEnable; polybar = ctpEnable