lib: add service helper function

This commit is contained in:
ooks-io 2024-12-06 13:51:50 +11:00
parent 0555fe90c4
commit 7c5bd43295
2 changed files with 13 additions and 0 deletions

12
outputs/lib/services.nix Normal file
View file

@ -0,0 +1,12 @@
{lib, ...}: let
inherit (lib) recursiveUpdate;
mkGraphicalService = recursiveUpdate {
Unit = {
After = ["graphical-session.target"];
PartOf = ["graphical-session.target"];
};
Install.WantedBy = ["graphical-session.target"];
};
in {
inherit mkGraphicalService;
}