Unverified Commit eb28b94b authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

nixos/iptsd: Touch was renamed to Touchscreen in v3 (#344036)

parents 58d1db7d 030f88a3
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -18,15 +18,15 @@ in {
      type = lib.types.submodule {
        freeformType = format.type;
        options = {
          Touch = {
          Touchscreen = {
            DisableOnPalm = lib.mkOption {
              default = false;
              description = "Ignore all touch inputs if a palm was registered on the display.";
              description = "Ignore all touchscreen inputs if a palm was registered on the display.";
              type = lib.types.bool;
            };
            DisableOnStylus = lib.mkOption {
              default = false;
              description = "Ignore all touch inputs if a stylus is in proximity.";
              description = "Ignore all touchscreen inputs if a stylus is in proximity.";
              type = lib.types.bool;
            };
          };
@@ -43,6 +43,10 @@ in {
  };

  config = lib.mkIf cfg.enable {
    warnings = lib.optional (lib.hasAttr "Touch" cfg.config) ''
      The option `services.iptsd.config.Touch` has been renamed to `services.iptsd.config.Touchscreen`.
    '';

    systemd.packages = [ pkgs.iptsd ];
    environment.etc."iptsd.conf".source = configFile;
    systemd.services."iptsd@".restartTriggers = [ configFile ];