home: wm: add dunst

This commit is contained in:
Bruno BELANYI 2021-04-06 15:52:41 +00:00
parent c56517497a
commit 3344b079dc
2 changed files with 16 additions and 0 deletions

View file

@ -10,6 +10,7 @@ let
in in
{ {
imports = [ imports = [
./dunst.nix
./i3.nix ./i3.nix
./i3bar.nix ./i3bar.nix
./rofi.nix ./rofi.nix
@ -23,6 +24,10 @@ in
description = "Which window manager to use for home session"; description = "Which window manager to use for home session";
}; };
dunst = {
enable = mkRelatedOption "dunst configuration" [ "i3" ];
};
i3bar = { i3bar = {
enable = mkRelatedOption "i3bar configuration" [ "i3" ]; enable = mkRelatedOption "i3bar configuration" [ "i3" ];
}; };

11
home/wm/dunst.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
let
cfg = config.my.home.wm.dunst;
in
{
config = lib.mkIf cfg.enable {
services.dunst = {
enable = true;
};
};
}