Move dunst into a module
This commit is contained in:
parent
0976409493
commit
c11c4d77f0
|
@ -4,6 +4,7 @@
|
|||
./programs/alacritty
|
||||
./programs/ansible
|
||||
./programs/calibre
|
||||
./services/dunst
|
||||
./services/grobi
|
||||
];
|
||||
}
|
||||
|
|
65
home-manager/modules/services/dunst/default.nix
Normal file
65
home-manager/modules/services/dunst/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.programs.az-dunst;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
programs.az-dunst.enable = lib.mkEnableOption "Enable dunst.";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
font = "Source Code Pro 14";
|
||||
markup = "yes";
|
||||
format = "<b>%s</b>\\n%b";
|
||||
sort = "no";
|
||||
indicate_hidden = "yes";
|
||||
alignment = "center";
|
||||
show_age_threshold = -1;
|
||||
word_wrap = "yes";
|
||||
ignore_newline = "no";
|
||||
stack_duplicates = "yes";
|
||||
shrink = "no";
|
||||
transparency = 5;
|
||||
idle_threshold = 0;
|
||||
monitor = 0;
|
||||
follow = "none";
|
||||
sticky_history = "yes";
|
||||
history_length = 15;
|
||||
show_indicators = "no";
|
||||
line_height = 3;
|
||||
separator_height = 2;
|
||||
padding = 6;
|
||||
horizontal_padding = 6;
|
||||
separator_color = "frame";
|
||||
browser = "firefox - new-tab";
|
||||
icon_position = "off";
|
||||
max_icon_size = 80;
|
||||
frame_width = 3;
|
||||
frame_color = "#8EC07C";
|
||||
};
|
||||
urgency_low = {
|
||||
frame_color = "#3B7C87";
|
||||
foreground = "#3B7C87";
|
||||
background = "#191311";
|
||||
timeout = 4;
|
||||
};
|
||||
urgency_normal = {
|
||||
frame_color = "#5B8234";
|
||||
foreground = "#5B8234";
|
||||
background = "#191311";
|
||||
timeout = 6;
|
||||
};
|
||||
urgency_critical = {
|
||||
frame_color = "#B7472A";
|
||||
foreground = "#B7472A";
|
||||
background = "#191311";
|
||||
timeout = 8;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,7 +4,6 @@
|
|||
"${inputs.self}/home-manager/modules"
|
||||
"${inputs.self}/home-manager/software/emacs"
|
||||
"${inputs.self}/home-manager/software/espanso"
|
||||
"${inputs.self}/home-manager/software/dunst"
|
||||
"${inputs.self}/home-manager/software/evince"
|
||||
"${inputs.self}/home-manager/software/fzf"
|
||||
"${inputs.self}/home-manager/software/git"
|
||||
|
@ -69,6 +68,7 @@
|
|||
};
|
||||
|
||||
services = {
|
||||
az-dunst.enable = true;
|
||||
az-grobi.enable = true;
|
||||
nextcloud-client = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
font = "Source Code Pro 14";
|
||||
markup = "yes";
|
||||
format = "<b>%s</b>\\n%b";
|
||||
sort = "no";
|
||||
indicate_hidden = "yes";
|
||||
alignment = "center";
|
||||
show_age_threshold = -1;
|
||||
word_wrap = "yes";
|
||||
ignore_newline = "no";
|
||||
stack_duplicates = "yes";
|
||||
shrink = "no";
|
||||
transparency = 5;
|
||||
idle_threshold = 0;
|
||||
monitor = 0;
|
||||
follow = "none";
|
||||
sticky_history = "yes";
|
||||
history_length = 15;
|
||||
show_indicators = "no";
|
||||
line_height = 3;
|
||||
separator_height = 2;
|
||||
padding = 6;
|
||||
horizontal_padding = 6;
|
||||
separator_color = "frame";
|
||||
browser = "firefox - new-tab";
|
||||
icon_position = "off";
|
||||
max_icon_size = 80;
|
||||
frame_width = 3;
|
||||
frame_color = "#8EC07C";
|
||||
};
|
||||
urgency_low = {
|
||||
frame_color = "#3B7C87";
|
||||
foreground = "#3B7C87";
|
||||
background = "#191311";
|
||||
timeout = 4;
|
||||
};
|
||||
urgency_normal = {
|
||||
frame_color = "#5B8234";
|
||||
foreground = "#5B8234";
|
||||
background = "#191311";
|
||||
timeout = 6;
|
||||
};
|
||||
urgency_critical = {
|
||||
frame_color = "#B7472A";
|
||||
foreground = "#B7472A";
|
||||
background = "#191311";
|
||||
timeout = 8;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user