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,18 +53,16 @@ in
boot.blacklistedKernelModules = cfg.blacklistedKernelModules; boot.blacklistedKernelModules = cfg.blacklistedKernelModules;
systemd.user.services.opentabletdriver = systemd.user.services.opentabletdriver = lib.mkIf cfg.daemon.enable {
with pkgs; description = "Open source, cross-platform, user-mode tablet driver";
lib.mkIf cfg.daemon.enable { wantedBy = [ "graphical-session.target" ];
description = "Open source, cross-platform, user-mode tablet driver"; partOf = [ "graphical-session.target" ];
wantedBy = [ "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";
};
}; };
};
}; };
} }