From 6bad81a644a491f4aaa142be06df9529a4df0b10 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 6 Apr 2021 15:52:41 +0000 Subject: [PATCH] home: wm: add dunst --- home/wm/default.nix | 5 +++++ home/wm/dunst.nix | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 home/wm/dunst.nix diff --git a/home/wm/default.nix b/home/wm/default.nix index 2421a50..5a50331 100644 --- a/home/wm/default.nix +++ b/home/wm/default.nix @@ -10,6 +10,7 @@ let in { imports = [ + ./dunst.nix ./i3.nix ./i3bar.nix ./rofi.nix @@ -23,6 +24,10 @@ in description = "Which window manager to use for home session"; }; + dunst = { + enable = mkRelatedOption "dunst configuration" [ "i3" ]; + }; + i3bar = { enable = mkRelatedOption "i3bar configuration" [ "i3" ]; }; diff --git a/home/wm/dunst.nix b/home/wm/dunst.nix new file mode 100644 index 0000000..e6c2090 --- /dev/null +++ b/home/wm/dunst.nix @@ -0,0 +1,11 @@ +{ config, lib, ... }: +let + cfg = config.my.home.wm.dunst; +in +{ + config = lib.mkIf cfg.enable { + services.dunst = { + enable = true; + }; + }; +}