lib: add service helper function
This commit is contained in:
parent
0555fe90c4
commit
7c5bd43295
2 changed files with 13 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
mkNeovim = import ./mkNeovim.nix {inherit inputs;};
|
mkNeovim = import ./mkNeovim.nix {inherit inputs;};
|
||||||
math = import ./math.nix {inherit lib;};
|
math = import ./math.nix {inherit lib;};
|
||||||
container = import ./containers.nix {inherit lib config;};
|
container = import ./containers.nix {inherit lib config;};
|
||||||
|
services = import ./services.nix {inherit lib;};
|
||||||
color = let
|
color = let
|
||||||
check = import ./color/check.nix {inherit lib;};
|
check = import ./color/check.nix {inherit lib;};
|
||||||
types = import ./color/types.nix {
|
types = import ./color/types.nix {
|
||||||
|
|
|
||||||
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