Unverified Commit 7491fd75 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

nixos/opentabletdriver: refactor (#423612)

parents befc84d8 5970f4d5
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -53,16 +53,14 @@ in

    boot.blacklistedKernelModules = cfg.blacklistedKernelModules;

    systemd.user.services.opentabletdriver =
      with pkgs;
      lib.mkIf cfg.daemon.enable {
    systemd.user.services.opentabletdriver = lib.mkIf cfg.daemon.enable {
      description = "Open source, cross-platform, user-mode tablet driver";
      wantedBy = [ "graphical-session.target" ];
      partOf = [ "graphical-session.target" ];

      serviceConfig = {
        Type = "simple";
          ExecStart = "${cfg.package}/bin/otd-daemon";
        ExecStart = lib.getExe' cfg.package "otd-daemon";
        Restart = "on-failure";
      };
    };