lib: add service helper function
This commit is contained in:
parent
0555fe90c4
commit
7c5bd43295
2 changed files with 13 additions and 0 deletions
12
outputs/lib/services.nix
Normal file
12
outputs/lib/services.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue