nixos/opentabletdriver: refactor (#423612)
This commit is contained in:
@@ -53,16 +53,14 @@ in
|
|||||||
|
|
||||||
boot.blacklistedKernelModules = cfg.blacklistedKernelModules;
|
boot.blacklistedKernelModules = cfg.blacklistedKernelModules;
|
||||||
|
|
||||||
systemd.user.services.opentabletdriver =
|
systemd.user.services.opentabletdriver = lib.mkIf cfg.daemon.enable {
|
||||||
with pkgs;
|
|
||||||
lib.mkIf cfg.daemon.enable {
|
|
||||||
description = "Open source, cross-platform, user-mode tablet driver";
|
description = "Open source, cross-platform, user-mode tablet driver";
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${cfg.package}/bin/otd-daemon";
|
ExecStart = lib.getExe' cfg.package "otd-daemon";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user