nixos/opentabletdriver: refactor (#423612)

This commit is contained in:
Thiago Kenji Okada
2025-09-30 08:34:11 +00:00
committed by GitHub

View File

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