From 9e71751d6676cdf10ba2be93039bee9413ca36d7 Mon Sep 17 00:00:00 2001 From: Henri Sota <56848082+henrisota@users.noreply.github.com> Date: Thu, 11 Apr 2024 06:40:42 +0200 Subject: [PATCH] feat(home-manager): add support for dunst (#104) --- _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 e4512dc..d55972a 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 4704e67..cbec462 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 0000000..c82ddaa --- /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 feffaf2..a200f0d 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 1c9b441..8525f1d 100644 --- a/test.nix +++ b/test.nix @@ -85,6 +85,7 @@ in }; services = { + dunst = ctpEnable; mako = ctpEnable; polybar = ctpEnable