mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27:44 +00:00
nice: add comments for inline syntax highlighting
This commit is contained in:
parent
63e9359aad
commit
5609e12668
2 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ in {
|
||||||
after = [ "postgresql.service" ];
|
after = [ "postgresql.service" ];
|
||||||
requires = [ "postgresql.service" ];
|
requires = [ "postgresql.service" ];
|
||||||
|
|
||||||
script = mkAfter /* shell */ ''
|
script = mkAfter /* sh */ ''
|
||||||
# TODO: Nextcloud 30 removed these. Find another way.
|
# TODO: Nextcloud 30 removed these. Find another way.
|
||||||
# nextcloud-occ theming:config name "RGBCube's Depot"
|
# nextcloud-occ theming:config name "RGBCube's Depot"
|
||||||
# nextcloud-occ theming:config slogan "RGBCube's storage of insignificant data."
|
# nextcloud-occ theming:config slogan "RGBCube's storage of insignificant data."
|
||||||
|
|
|
@ -13,13 +13,13 @@ in {
|
||||||
config.services.restic.backups = genAttrs config.services.restic.hosts <| const {
|
config.services.restic.backups = genAttrs config.services.restic.hosts <| const {
|
||||||
paths = [ "/tmp/postgresql-dump.sql.gz" ];
|
paths = [ "/tmp/postgresql-dump.sql.gz" ];
|
||||||
|
|
||||||
backupPrepareCommand = ''
|
backupPrepareCommand = /* sh */ ''
|
||||||
${config.services.postgresql.package}/bin/pg_dumpall --clean \
|
${config.services.postgresql.package}/bin/pg_dumpall --clean \
|
||||||
| ${lib.getExe pkgs.gzip} --rsyncable \
|
| ${lib.getExe pkgs.gzip} --rsyncable \
|
||||||
> /tmp/postgresql-dump.sql.gz
|
> /tmp/postgresql-dump.sql.gz
|
||||||
'';
|
'';
|
||||||
|
|
||||||
backupCleanupCommand = ''
|
backupCleanupCommand = /* sh */ ''
|
||||||
rm /tmp/postgresql-dump.sql.gz
|
rm /tmp/postgresql-dump.sql.gz
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -32,12 +32,12 @@ in {
|
||||||
enableJIT = true;
|
enableJIT = true;
|
||||||
|
|
||||||
initdbArgs = [ "--locale=C" "--encoding=UTF8" ];
|
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_read_all_data TO root;
|
||||||
GRANT pg_write_all_data TO root;
|
GRANT pg_write_all_data TO root;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
authentication = mkOverride 10 ''
|
authentication = mkOverride 10 /* ini */ ''
|
||||||
# Type Database DBUser Authentication
|
# Type Database DBUser Authentication
|
||||||
local all all peer
|
local all all peer
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue