home: add dunst so it compiles

This commit is contained in:
NullBite 2024-05-16 02:19:14 -04:00
parent 2e2e16378a
commit bd54f2347d
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 35 additions and 0 deletions

View File

@ -4,5 +4,6 @@
./comma.nix ./comma.nix
./mopidy.nix ./mopidy.nix
./hypridle.nix ./hypridle.nix
./dunst.nix
]; ];
} }

34
home/programs/dunst.nix Normal file
View File

@ -0,0 +1,34 @@
{ config, lib, pkgs, ... }:
let
cfg = config.nixfiles.programs.dunst;
mkd = lib.mkDefault;
in {
options.nixfiles.programs.dunst = {
enable = lib.mkOption {
description = "Whether to enable the dunst configuration";
type = lib.types.bool;
default = false;
example = true;
};
};
config = lib.mkIf cfg.enable {
services.dunst = {
enable = mkd true;
settings = {
global = {
# behavior
monitor = mkd 1;
markup = mkd "full";
show_age_threshold = mkd "60";
# appearance
follow = mkd "none";
font = mkd "Ubuntu 10";
alignment = mkd "left";
word_wrap = mkd true;
};
};
};
};
}