anchor.diff:                  sleep 1
               done
             '';
  -
  -        serviceConfig =
  -          { # Shut down Postgres using SIGINT ("Fast Shutdown mode").  See
  -            # http://www.postgresql.org/docs/current/static/server-shutdown.html
  -            KillSignal = "SIGINT";
  -
  -            # Give Postgres a decent amount of time to clean up after
  -            # receiving systemd's SIGINT.
  -            TimeoutSec = 60;
  -          };
         };
   
     };
  
positive.code:             if ! test -e ${cfg.dataDir}; then
                  mkdir -m 0700 -p ${cfg.dataDir}
                  chown -R postgres ${cfg.dataDir}
                  ${run} -c 'initdb -U root'
                  rm -f ${cfg.dataDir}/*.conf
              fi
  
              ln -sfn ${configFile} ${cfg.dataDir}/postgresql.conf
            ''; # */
  
          exec = "${run} -c 'postgres ${toString flags}'";
  
          # Wait for PostgreSQL to be ready to accept connections.
          postStart =
  
negative.code: 
      environment.systemPackages = [postgresql];
  
      boot.systemd.services.postgresql =
        { description = "PostgreSQL server";
  
          wantedBy = [ "multi-user.target" ];
  