anchor.diff:          ln -s ${configFile} ${cfg.configDir}/configuration.yaml
         '';
         serviceConfig = {
  -        ExecStart = ''
  -          ${package}/bin/hass --config "${cfg.configDir}"
  -        '';
  +        ExecStart = "${package}/bin/hass --config '${cfg.configDir}'";
           User = "hass";
           Group = "hass";
           Restart = "on-failure";
           ProtectSystem = "strict";
           ReadWritePaths = "${cfg.configDir}";
           PrivateTmp = true;
  +        RemoveIPC = true;
         };
         path = [
           "/run/wrappers" # needed for ping
  
positive.code:       default = "/var/lib/hass";
        type = types.path;
        description = "The config directory, where your <filename>configuration.yaml</filename> is located.";
      };
  
      config = mkOption {
  
negative.code:     then (cfg.package.override { inherit extraComponents; })
      else cfg.package;
  
    # If you are changing this, please update the description in applyDefaultConfig
    defaultConfig = {
      homeassistant.time_zone = config.time.timeZone;
      http.server_port = (toString cfg.port);
    };
  
  in {
    meta.maintainers = with maintainers; [ dotlambda ];
  
  