Refactor codebase to use nix modules
This commit is contained in:
parent
a4735423b4
commit
ffada2703c
114 changed files with 1018 additions and 744 deletions
49
hmModules/services/dunst/default.nix
Normal file
49
hmModules/services/dunst/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options.dunst = {
|
||||
enable = lib.mkEnableOption "Enables dunst";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.dunst.enable {
|
||||
home.packages = with pkgs; [
|
||||
libnotify
|
||||
];
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
width = 280;
|
||||
height = 240;
|
||||
origin = "bottom-right";
|
||||
offset = "0x300";
|
||||
|
||||
notification_limit = 3;
|
||||
|
||||
progress_bar_max_width = 280;
|
||||
|
||||
gap_size = 4;
|
||||
corner_radius = 20;
|
||||
};
|
||||
|
||||
urgency_low = {
|
||||
background = "#FFFFFFCC";
|
||||
foreground = "#000000";
|
||||
frame_color = "#0000";
|
||||
};
|
||||
|
||||
urgency_normal = {
|
||||
background = "#FFFFFFCC";
|
||||
foreground = "#000000";
|
||||
frame_color = "#0000";
|
||||
};
|
||||
|
||||
urgency_critical = {
|
||||
background = "#FFFFFFCC";
|
||||
foreground = "#000000";
|
||||
frame_color = "#0000";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue