nichts/nyx/lib/services.nix
2024-04-09 23:11:33 +02:00

17 lines
597 B
Nix

{lib, ...}: let
# make a service that is a part of the graphical session target
mkGraphicalService = lib.recursiveUpdate {
Unit.PartOf = ["graphical-session.target"];
Unit.After = ["graphical-session.target"];
Install.WantedBy = ["graphical-session.target"];
};
# make a service that is a part of the hyprland session target
mkHyprlandService = lib.recursiveUpdate {
Unit.PartOf = ["graphical-session.target"];
Unit.After = ["graphical-session.target"];
Install.WantedBy = ["hyprland-session.target"];
};
in {
inherit mkGraphicalService mkHyprlandService;
}