anchor.diff:  
   in
   {
  +  imports = [ (mkRemovedOptionModule [ "services" "sniproxy" "logDir" ] "Now done by LogsDirectory=. Set to a custom path if you log to a different folder in your config.") ];
  +
     options = {
       services.sniproxy = {
         enable = mkEnableOption "sniproxy server";
  
positive.code:       description = "sniproxy server";
        after = [ "network.target" ];
        wantedBy = [ "multi-user.target" ];
        preStart = ''
          test -d ${cfg.logDir} || {
            echo "Creating initial log directory for sniproxy in ${cfg.logDir}"
            mkdir -p ${cfg.logDir}
            chmod 640 ${cfg.logDir}
            }
          chown -R ${cfg.user}:${cfg.group} ${cfg.logDir}
        '';
  
        serviceConfig = {
          Type = "forking";
          ExecStart = "${pkgs.sniproxy}/bin/sniproxy -c ${configFile}";
          Restart = "always";
        };
      };
  
negative.code:           }
          '';
        };
      };
  
    };
  