sorta refactor

This commit is contained in:
2025-12-25 23:41:24 +02:00
parent 68f7fe03e7
commit 063e32aa73
52 changed files with 1159 additions and 1996 deletions
+44
View File
@@ -0,0 +1,44 @@
{
# config,
pkgs,
lib,
...
}: {
services = {
gnome-keyring = {
enable = true;
components = ["secrets"];
};
kanshi = import ../niri/services/kanshi;
udiskie = {
enable = true;
automount = false;
notify = true;
tray = "auto";
};
};
systemd.user.services = let
mkGraphicalService = config: lib.attrsets.recursiveUpdate graphicalService config;
graphicalService = {
Install.WantedBy = ["niri.service"];
Unit = {
Requisite = ["graphical-session.target"];
PartOf = ["graphical-session.target"];
After = ["graphical-session.target"];
};
Service = {
Restart = "on-failure";
TimeoutStopSec = 10;
RestartSec = 1;
};
};
in {
polkit-agent = mkGraphicalService {
Service = {
Type = "simple";
ExecStart = pkgs.mate.mate-polkit + "/libexec/polkit-mate-authentication-agent-1";
};
};
};
}