use mako and improve starting characteristics

This commit is contained in:
Noa Aarts 2024-11-22 21:56:27 +01:00
parent df66b2b2f1
commit c03d0d2082
Signed by: noa
GPG key ID: 1850932741EFF672
4 changed files with 33 additions and 44 deletions

View file

@ -206,6 +206,10 @@ in
services = lib.mkMerge [ services = lib.mkMerge [
{ {
spotify = { spotify = {
Install = {
WantedBy = [ "niri.service" ];
};
Unit = { Unit = {
PartOf = "graphical-session.target"; PartOf = "graphical-session.target";
After = "graphical-session.target"; After = "graphical-session.target";
@ -216,6 +220,22 @@ in
ExecStart = "spotify"; ExecStart = "spotify";
}; };
}; };
mako = {
Install = {
WantedBy = [ "niri.service" ];
};
Unit = {
PartOf = "graphical-session.target";
After = "graphical-session.target";
Requisite = "graphical-session.target";
};
Service = {
ExecStart = "${pkgs.mako}/bin/mako";
};
};
} }
# makes an automapaper service and config for every monitor. # makes an automapaper service and config for every monitor.
(builtins.listToAttrs ( (builtins.listToAttrs (
@ -398,10 +418,6 @@ in
}; };
services = { services = {
# sync my password store and homework
syncthing = {
enable = true;
};
# to make my yubikey and git signing do things correctly # to make my yubikey and git signing do things correctly
gpg-agent = { gpg-agent = {
enable = true; enable = true;
@ -409,5 +425,18 @@ in
enableSshSupport = true; enableSshSupport = true;
pinentryPackage = lib.mkIf enableGraphical pkgs.pinentry-qt; pinentryPackage = lib.mkIf enableGraphical pkgs.pinentry-qt;
}; };
# notification daemon, I think it looks better than dunst
mako = {
enable = true;
backgroundColor = "#000000AA";
# make notifications time out after 30 sec by default
defaultTimeout = 30000;
borderColor = config.colorScheme.palette.base00;
};
playerctld.enable = true;
# sync my password store and homework
syncthing = {
enable = true;
};
}; };
} }

View file

@ -4,6 +4,5 @@
./waybar ./waybar
./applications ./applications
./games ./games
./dunst.nix
]; ];
} }

View file

@ -1,37 +0,0 @@
{
config,
lib,
pkgs,
inputs,
...
}:
let
cfg = config.modules.dunst;
in
{
options.modules.dunst = {
enable = lib.mkEnableOption "enable dunst for notifications";
};
config = lib.mkIf cfg.enable {
services.dunst = {
enable = true;
# settings = {
# global = {
# width = 300;
# height = 300;
# offset = "30x50";
# origin = "top-right";
# transparency = 10;
# frame_color = "#293929";
# font = "Droid Sans 9";
# };
#
# urgency_normal = {
# background = "#37474f";
# foreground = "#293929";
# timeout = 10;
# };
# };
};
};
}

View file

@ -12,8 +12,6 @@ let
autostart-string = autostart-string =
"spawn-at-startup \"" "spawn-at-startup \""
+ pkgs.lib.strings.concatStringsSep "\nspawn-at-startup \"" [ + pkgs.lib.strings.concatStringsSep "\nspawn-at-startup \"" [
"${pkgs.dunst}/bin/dunst\""
"spotify\""
"keepassxc\"" "keepassxc\""
"thunderbird\"" "thunderbird\""
]; ];