From 5609e1266897640ea17c11042ed0b1bff9cbefdc Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sun, 23 Feb 2025 20:05:41 +0300 Subject: [PATCH] nice: add comments for inline syntax highlighting --- hosts/cube/nextcloud/default.nix | 2 +- hosts/cube/postgresql.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/cube/nextcloud/default.nix b/hosts/cube/nextcloud/default.nix index 1b612ed..29ecfb5 100644 --- a/hosts/cube/nextcloud/default.nix +++ b/hosts/cube/nextcloud/default.nix @@ -35,7 +35,7 @@ in { after = [ "postgresql.service" ]; requires = [ "postgresql.service" ]; - script = mkAfter /* shell */ '' + script = mkAfter /* sh */ '' # TODO: Nextcloud 30 removed these. Find another way. # nextcloud-occ theming:config name "RGBCube's Depot" # nextcloud-occ theming:config slogan "RGBCube's storage of insignificant data." diff --git a/hosts/cube/postgresql.nix b/hosts/cube/postgresql.nix index d33c76e..dee239b 100644 --- a/hosts/cube/postgresql.nix +++ b/hosts/cube/postgresql.nix @@ -13,13 +13,13 @@ in { config.services.restic.backups = genAttrs config.services.restic.hosts <| const { paths = [ "/tmp/postgresql-dump.sql.gz" ]; - backupPrepareCommand = '' + backupPrepareCommand = /* sh */ '' ${config.services.postgresql.package}/bin/pg_dumpall --clean \ | ${lib.getExe pkgs.gzip} --rsyncable \ > /tmp/postgresql-dump.sql.gz ''; - backupCleanupCommand = '' + backupCleanupCommand = /* sh */ '' rm /tmp/postgresql-dump.sql.gz ''; }; @@ -32,12 +32,12 @@ in { enableJIT = true; initdbArgs = [ "--locale=C" "--encoding=UTF8" ]; - initialScript = pkgs.writeText "grant-root-perms" '' + initialScript = pkgs.writeText "grant-root-perms.sql" '' GRANT pg_read_all_data TO root; GRANT pg_write_all_data TO root; ''; - authentication = mkOverride 10 '' + authentication = mkOverride 10 /* ini */ '' # Type Database DBUser Authentication local all all peer '';