home/dms: split the config

This commit is contained in:
2025-12-21 22:16:22 +02:00
parent 21417986f6
commit 88bc5ec810
11 changed files with 141 additions and 104 deletions
@@ -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";
};
};
};
}