anchor.diff:        description = "Etcd daemon user";
         home = cfg.dataDir;
       };
  +
     };
   }
  
positive.code: let
    cfg = config.services.etcd;
  
  in {
  
    options.services.etcd = {
      enable = mkOption {
        description = "Whether to enable etcd.";
        default = false;
  
negative.code:       default = "";
        type = types.str;
      };
    };
  
    config = mkIf cfg.enable {
  
      systemd.services.etcd = {
        description = "Etcd Daemon";
        wantedBy = [ "multi-user.target" ];
        after = [ "network.target" ];
  
        serviceConfig = {
          Type = "notify";
          ExecStart = "@${pkgs.etcd}/bin/etcd etcd --config-file ${configFile}";
          User = "etcd";
          PermissionsStartOnly = true;
        };
  
        preStart = ''
          mkdir -m 0700 -p ${cfg.dataDir}
          chown etcd ${cfg.dataDir};
        '';
      };
  
      environment.systemPackages = [
        pkgs.etcd
      ];
  
      users.extraUsers = singleton {
        name = "etcd";
  