dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

default.nix (1783B)


      1 {
      2   pkgs,
      3 
      4   style,
      5   user,
      6   ...
      7 }:
      8 {
      9   home-manager.users.${user} = {
     10     wayland.windowManager.hyprland.settings = {
     11       bind = [ "$mod, Grave, exec, uwsm app -- dunstctl history-pop" ];
     12       layerrule = [ "blur on, ignore_alpha 0.19, match:namespace notifications" ];
     13     };
     14 
     15     home.packages = [ pkgs.libnotify ];
     16 
     17     services.dunst = {
     18       enable = true;
     19       settings = {
     20         global = {
     21           follow = "mouse";
     22           alignment = "center";
     23           width = 500;
     24           height = "(42, 180)";
     25           origin = "top-center";
     26           offset = "(0, 10)";
     27           corner_radius = 10;
     28           corners = "bottom";
     29           padding = 12;
     30           horizontal_padding = 12;
     31           frame_width = 0;
     32           markup = "full";
     33           icon_position = "off";
     34           font = "${style.fonts.mono.family} 12";
     35           line_height = 12;
     36           stack_duplicates = true;
     37           hide_duplicate_count = true;
     38           transparency = 0;
     39           separator_height = 0;
     40           fullscreen = "show";
     41           layer = "overlay";
     42           show_age_threshold = 60;
     43         };
     44 
     45         urgency_low = {
     46           timeout = 3;
     47           background = "#${style.colors.bg.hexRgba}";
     48           foreground = "#${style.colors.fg.hex}";
     49           frame_color = "#${style.colors.fg.hex}";
     50         };
     51 
     52         urgency_normal = {
     53           timeout = 3;
     54           background = "#${style.colors.bg.hexRgba}";
     55           foreground = "#${style.colors.fg.hex}";
     56           frame_color = "#${style.colors.fg.hex}";
     57         };
     58 
     59         urgency_critical = {
     60           timeout = 30;
     61           background = "#${style.colors.bg.hexRgba}";
     62           foreground = "#${style.colors.fg.hex}";
     63           frame_color = "#${style.colors.red.hex}";
     64         };
     65       };
     66     };
     67   };
     68 }