test of flagging system

This commit is contained in:
James Patrick 2021-12-13 01:13:26 -05:00
parent a8d18138a3
commit f3dc384e73

View File

@ -1,55 +1,70 @@
{ config, lib, pkgs, ... }: { { options, config, lib, pkgs, ... }:
let cfg = config.application.mako;
in with lib; {
options = {
application.mako = {
enable = mkOption {
# TODO track based on sway default
default = false;
type = with types; bool;
description = "testing one two three";
};
};
};
home-manager.users.james = { config = mkIf cfg.enable {
programs.mako = {
home-manager.users.james = {
programs.mako = {
enable = true;
width = 450;
padding = "20,20";
backgroundColor = "#161720ee";
borderColor = "#12151a";
textColor = "#d6e5fb";
defaultTimeout = 8000;
progressColor = "over #d6e5fb";
layer = "overlay";
groupBy = "summary";
extraConfig = ''
[hidden]
background-color=#bfbfbfff
format=+ %h
[urgency=high]
background-color=#1f212eee
border-color=#f0185a00
text-color=#f0185a
ignore-timeout=true
default-timeout=0
[!expiring]
background-color=#555555ff
text-color=#eeeeeeff
[grouped]
format=<b>%s</b> %g\n%b
'';
};
home.packages = with pkgs; [ libnotify ];
};
systemd.user.services.mako = {
enable = true; enable = true;
width = 450; description = "Mako - Notificaitons for Wayland";
padding = "20,20"; documentation = [ "man:mako(5)" ];
backgroundColor = "#161720ee"; partOf = [ "sway-session.target" ];
borderColor = "#12151a"; bindsTo = [ "sway-session.target" ];
textColor = "#d6e5fb"; environment.PATH = lib.mkForce null;
defaultTimeout = 8000; serviceConfig = {
progressColor = "over #d6e5fb"; ExecStart = "${pkgs.mako}/bin/mako";
layer = "overlay"; Restart = "on-failure";
groupBy = "summary"; RestartSec = 1;
extraConfig = '' TimeoutStopSec = 10;
[hidden] Type = "simple";
background-color=#bfbfbfff };
format=+ %h
[urgency=high]
background-color=#1f212eee
border-color=#f0185a00
text-color=#f0185a
ignore-timeout=true
default-timeout=0
[!expiring]
background-color=#555555ff
text-color=#eeeeeeff
[grouped]
format=<b>%s</b> %g\n%b
'';
}; };
home.packages = with pkgs; [ libnotify ];
}; };
systemd.user.services.mako = {
enable = true;
description = "Mako - Notificaitons for Wayland";
documentation = [ "man:mako(5)" ];
partOf = [ "sway-session.target" ];
bindsTo = [ "sway-session.target" ];
environment.PATH = lib.mkForce null;
serviceConfig = {
ExecStart = "${pkgs.mako}/bin/mako";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
Type = "simple";
};
};
} }