home: add dunst so it compiles
This commit is contained in:
parent
2e2e16378a
commit
bd54f2347d
@ -4,5 +4,6 @@
|
||||
./comma.nix
|
||||
./mopidy.nix
|
||||
./hypridle.nix
|
||||
./dunst.nix
|
||||
];
|
||||
}
|
||||
|
34
home/programs/dunst.nix
Normal file
34
home/programs/dunst.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user