Commit Graph

521 Commits

Author SHA1 Message Date
Aliaksandr
80f12557f5 treewide: replace "yes" else "no" usages to lib.boolToYesNo 2025-10-21 16:04:34 +03:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
René Neumann
ecb103a306 nixos/borgbackup: Add option wrapper
Add an option `service.borgbackup.jobs.<name>.wrapper` that allows to
control the name of the installed wrapper script -- or even to disable
its installation at all.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-10-02 21:46:38 +02:00
Rafael Ieda
49f3a9f7cb pgbackrest: 2.55.1 -> 2.56.0 2025-09-17 15:55:24 -03:00
Wolfgang Walther
813e733657 nixos/pgbackrest: add commands option for specific settings
These settings are documented here:
https://pgbackrest.org/configuration.html

It's useful to be able to define specific configuration for separate
commands, for example for fixing a failing test in the next update.
2025-09-17 18:59:48 +02:00
6543
92d5ef9768 services.libvirtd.autoSnapshot: init 2025-09-07 12:17:56 +02:00
Sefa Eyeoglu
82d2631e1c nixos/postgresql-backup: add pgdumpAllOptions
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-08-29 22:22:11 +02:00
Sandro
3bc0bc33c3 nixos/postgresql-backup: do not enable assertions when module is disabled (#437168) 2025-08-26 21:55:52 +02:00
Felipe Silva
6b1ffd4282 nixos/restic: allow setting repository/password via environmentFile 2025-08-26 19:22:03 +02:00
Sandro Jäckel
d7fbdf54e1 nixos/postgresql-backup: do not enable assertions when module is disabled 2025-08-26 18:04:16 +02:00
dish
970dcca69c treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
Rick van Schijndel
6b0b1559e9 nixos/restic: add command option (#432329) 2025-08-24 13:35:28 +02:00
Wolfgang Walther
87e1134406 postgresql.tests.postgresql.postgresql-backup-all: fix random dump
The new `\restrict` migitation creates random keys in the dump file by
default, which breaks a before/after test for the backup module. By
making the restrict key reproducible, the test passes again.
2025-08-23 21:13:09 +02:00
rowan amber-jones
6434cf0b18 nixos/restic: add command option
Add module support for --stdin-from-command flag, which was added to
restic in https://github.com/restic/restic/pull/4410. I also made a few
very small changes here and there in the nix code to make it look a
little neater in my opinion.

I could potentially add support for the --stdin flag too, but this would
require prepending the restic command with an external command and a
pipe, which seems a bit messy - and the restic documentation says to
prefer --stdin-from-command over --stdin anyway.

I could add an option for --stdin-filename, but I feel that this would
be better for users to do in extraBackupArgs.
2025-08-21 19:47:50 +01:00
Sandro
c6c6d0bc86 nixos/sanoid: add missing sanoid options regarding script hooks. (#412248) 2025-08-13 01:24:03 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther
62fe016519 treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
Doron Behar
2f83e9cb4a tsm-client: 8.1.25.0 -> 8.1.27.0, drop old migration code (#387363) 2025-07-16 23:20:28 +03:00
Fabian Koehler
c0066c4316 Add missing sanoid options regarding script hooks. 2025-07-06 11:50:52 +08:00
Mateusz Galazyn
0fc73e5101 nixos/duplicati: add parameters-file option
Co-Authored-By: Jack Michaud <jack@lomz.me>
2025-06-30 12:12:27 +02:00
Wolfgang Walther
41c5662cbe nixos/postgresql: move postStart into separate unit
This avoids restarting the postgresql server, when only ensureDatabases
or ensureUsers have been changed. It will also allow to properly wait
for recovery to finish later.

To wait for "postgresql is ready" in other services, we now provide a
postgresql.target.

Resolves #400018

Co-authored-by: Marcel <me@m4rc3l.de>
2025-06-24 15:26:47 +02:00
Yarny0
f9cc9bf911 tsm-client: 8.1.26.0 -> 8.1.27.0
"What's new" page:
https://www.ibm.com/docs/en/storage-protect/8.1.27?topic=new-backup-archive-client-updates

Other resources are hidden behind a login portal.
2025-06-21 13:02:39 +02:00
Yarny0
37922d6e2f tsm-client: 8.1.25.0 -> 8.1.26.0
"What's new" page:
https://www.ibm.com/docs/en/storage-protect/8.1.26?topic=new-backup-archive-client-updates

Other resources are hidden behind a login portal.
2025-06-21 13:02:39 +02:00
Brendan Taylor
d0be8ff242 nixos/borgmatic: do not use pg_dumpall when a format is set (#413251) 2025-06-04 18:05:58 +02:00
Thomas J
4531deeed8 nixos/borgmatic: do not create source directories for empty databases (#410752) 2025-05-25 18:58:12 +02:00
Wolfgang Walther
9d78475ae9 nixos/pgbackrest: prevent storing secrets in store
While we're not (fully) supporting the related features, yet, we already
prevent accidental storage of secrets in the store. This will also avoid
breaking changes in the future, when those features are properly
supported.
2025-05-12 09:14:39 +02:00
Wolfgang Walther
82e519947f nixos/pgbackrest: add SFTP support 2025-05-12 09:14:38 +02:00
Wolfgang Walther
d5ddb6116f nixos/pgbackrest: init module 2025-05-12 09:14:37 +02:00
Leona Maroni
cbc2586506 nixos/doc/rl2505: fix typos (#403348) 2025-05-02 15:25:07 +02:00
Gabe Venberg
dad528800a nixos/restic-rest-server: fixed typos. 2025-05-01 21:25:38 +02:00
NotAShelf
d4cda46d75 nixos/borgbackup: fix typo in example passphrase 2025-05-01 19:24:08 +03:00
Gabe Venberg
b539e4848f nixos/restic-rest-server Fixed htpasswd-path when null.
Made a bad assumption about htpasswd-path's default.
2025-04-18 12:25:33 +02:00
Gabe Venberg
b7c8e22ea3 nixos/restic-rest-server: add htpasswd-file setting
in the restic rest-server, you can set the file to use in place of
$datadir/.htpasswd with the --htpasswd-file option. However, this was
unusable from the module with extraConfig, due to systemd hardening.
Adding a dedicated option fixes this.
2025-04-16 20:34:01 +02:00
Sandro
3e0b5e80af nixos/restic: escape variables in wrapper script (#395005) 2025-04-09 18:07:09 +02:00
Leon Schuermann
71967c47e5 nixos/syncoid: allow interval to be list of strings
The syncoid module generates systemd services with a `startAt` config
based on its `interval` value. However, it is currently not possible
to completely disable this timer, or set multiple `startAt` values.

By accepting the same types that `systemd.services.<name>.startAt`
accepts, we can disable generating a timer unit or set multiple
`startAt` timers.
2025-04-07 16:11:21 -04:00
hotburger
f6885105e9 nixos/restic: escape settings in wrapper script 2025-04-07 03:21:40 -07:00
Leonie Marcy Vack
2e0d0d6333 znapzend: use system's zfs package 2025-04-02 15:12:59 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Sandro Jäckel
138abab480 nixos/restic: unlock database before doing pruning
This is safe to do because only stale locks are removed.
See https://github.com/restic/restic/issues/2736 and https://github.com/restic/restic/blob/master/internal/restic/lock.go
By default only locks older than 30 minutes or when the pid is no longer
found on the same machine, are removed. Locks are refreshed every 5
minutes when doing operations.
2025-03-04 22:54:42 +01:00
Sandro Jäckel
7c9c342419 nixos/restic: suggest to cleanup cache 2025-03-04 22:54:34 +01:00
Stefan Mielke
c442a189e7 nixos/mysql-backup: fix error when db name contains a dot 2025-02-27 01:06:04 +01:00
Sandro
7379cc70e6 services.restic: use getExe instead of hard-coded path (#376416) 2025-02-19 17:27:20 +01:00
Silvan Mosberger
2dd940e1e9 services.mysqlBackup: make singleTransaction configurable per database (#377134) 2025-02-12 03:54:18 +01:00
6543
0932d53270 services.mysqlBackup: document why we need different dumpBinary paths 2025-02-12 03:42:22 +01:00
Cody Allen
bf121f0671 services.restic: use getExe instead of hard-coded path
Instead of assuming the restic executable is at `bin/restic`, use
`lib.getExe` on the restic package. The main motivation for this is
using a security wrapper that has a different name such as
`bin/restic-wrapper`.

NOTE: In rare cases this could be a breaking change. For example if you
are using a wrapper whose executable is at `bin/restic`,
`meta.mainProgram` is not set, _and_ your package name is something
other than `restic`.

See the [discource discussion](https://discourse.nixos.org/t/using-restic-service-with-the-security-wrapper/34547/5) for more details/discussion.
2025-02-07 13:42:57 -05:00
6543
16553f2c83 services.mysqlBackup: add assertion that all databases in singleTransaction must be included in the databases option 2025-02-02 21:09:05 +01:00
6543
00f0c5cf32 services.mysqlBackup: use new path of mariadb-dump if mysql service package is a modern mariadb 2025-02-02 21:09:05 +01:00
6543
d250c32be7 services.mysqlBackup: make singleTransaction configurable per database 2025-02-02 21:09:04 +01:00
Tert0
aca35b7fd6 nixos/restic: add progressFps option 2025-01-30 19:04:44 +01:00