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

View file

@ -11,6 +11,7 @@
mkNeovim = import ./mkNeovim.nix {inherit inputs;};
math = import ./math.nix {inherit lib;};
container = import ./containers.nix {inherit lib config;};
services = import ./services.nix {inherit lib;};
color = let
check = import ./color/check.nix {inherit lib;};
types = import ./color/types.nix {

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;
}