Move dunst to own module, update styles

This commit is contained in:
Riley Apeldoorn 2023-06-15 17:19:31 +02:00 committed by Riley Apeldoorn
parent 1c9287cc44
commit 588bc378a2
3 changed files with 22 additions and 15 deletions

View file

@ -11,6 +11,7 @@ in {
./sway.nix
./term.nix
./waybar.nix
./dunst.nix
];
config = lib.mkIf (cfg.enable) {

21
shared/home/gui/dunst.nix Normal file
View file

@ -0,0 +1,21 @@
{ ... }: {
services.dunst = {
enable = true;
settings = {
global = {
font = "Fira Code 9";
origin = "bottom-right";
offset = "10x10";
frame_width = "2";
frame_color = "#ffffff";
corner_radius = "4";
width = "400";
};
urgency_critical.background = "#d12142";
urgency_normal = {
background = "#212121";
format = "<b><span foreground='#27e67a'>%s</span></b>\\n%b";
};
};
};
}

View file

@ -26,21 +26,6 @@
xdg.systemDirs.data = [ "/usr/share" "/usr/local/share" ];
fonts.fontconfig.enable = true;
services.dunst = {
enable = true;
settings = {
global = {
font = "Fira Code 9";
origin = "top-center";
offset = "10x10";
frame_width = "2";
frame_color = "#ffffff";
width = "400";
};
urgency_normal.background = "#212121";
};
};
programs.man.enable = false;
}