549 Commits
Author SHA1 Message Date
SandroandGitHub cd4b53e847 sanoid: write config to standard location (#534756) 2026-06-30 22:29:19 +00:00
Ivan Petkov 22fff7274f nixos/syncoid: allow @timer syscalls
Syncoid uses `pv` to display information about transfer speeds. During
the pv bump from 1.10.5 to 1.11.0 it started using the setitimer syscall
(included by `@timer`) which would segfault given that the sandbox
configuration was set to block all syscalls in the `@timer` group
2026-06-27 18:15:54 -07:00
nwright 8f0f15a2cd nixos/sanoid: write config to standard location 2026-06-25 17:36:22 -04:00
Sandro Jäckel 6c0cb2defd treewide: fix leftover docbook links 2026-06-13 23:37:09 +02:00
SandroandGitHub dc25e85e72 nixos/btrbk: add extraArgs option (#460724) 2026-05-06 22:21:57 +00:00
Michael Daniels 2e87c2f8f4 nixos/*: remove unused let bindings
Generated using deadnix (with some manual work); split from #514611.
2026-05-01 20:39:14 -04:00
Ameer Taweel 0d8b4bd0c5 nixos/duplicity: remove absolute path literals 2026-04-25 01:41:56 +03:00
nixpkgs-ci[bot]andGitHub 2d38540b44 Merge master into staging-next 2026-04-07 18:19:48 +00:00
Yarny0 2ad8bf20ed tsm-client: 8.1.27.1 -> 8.2.1.0
Release notes ("What's new"):
https://www.ibm.com/docs/en/storage-protect/8.2.1?topic=whats-new#r_wn_tsmserver__title__3

The package now needs `brotli` and `libnghttp2`.

Unfortunatelly, the vm test's OCR no longer recognizes
the version number in the information dialog box
(it sees "8.21.0" instead of "8.2.1.0").
I don't think relaxing that test makes any sense,
as OCR might fail in a million different ways.
So I just remove the version number check from the test.
2026-03-27 19:31:06 +01:00
Victor Engmark c4f5dfad0d treewide: Remove continuation escape at end of commands
To avoid confusion and spurious newlines in the output.

Found by searching for a backslash followed by a newline, some
indentation, and then the end of multi-line string marker, using the
following extended regex:

```regex
\\\n +'';
```
2026-03-17 16:47:55 +01:00
liberodarkandSandro Jäckel a58190c92d nixos/restic: prevent start when rebuilding system 2026-03-12 00:55:41 +01:00
Sefa EyeogluandGitHub 21ed05694b nixos/borgbackup: add extraArgs to wrapper script (#415272) 2026-02-21 20:48:07 +00:00
DoctorDalek1963andSefa Eyeoglu 719d6217ff nixos/borgbackup: add extraArgs to wrapper script
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2026-02-21 21:36:52 +01:00
Dyego Aurélio 28096cc5e3 treewide: apply nixfmt 1.2.0 2026-01-22 18:37:56 -03:00
Paul HaerleandGitHub 34282be0ce nixos/restic-rest-server: make (re)starts more reliable with ReusePort & Freebind (#464932) 2026-01-22 07:24:22 +00:00
NAHO a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
SandroandGitHub 8cda383d1c nixos/syncoid: avoid leaking zfs list into journald log (#473450) 2026-01-02 03:30:47 +00:00
SandroandGitHub e225651d55 nixos/restic: rm -f tempfiles (#446825) 2025-12-31 17:11:51 +00:00
weriomat 490d1e55cf nixos/borgmatic: add sqlite binaries if required 2025-12-25 22:22:35 +01:00
Sandro Jäckel a385f6220c nixos/syncoid: avoid leaking zfs list into journald log 2025-12-23 01:11:18 +01:00
Tom Vincent 22f19b9982 nixos/btrbk: add extraArgs option 2025-12-09 07:43:15 +00:00
phaer f02f30a021 nixos/restic-rest-server: set FreeBind=true for socket...
in order to allow binding to not (yet) locally available
interfaces. man 5 systemd.socket says:

> For robustness reasons it is recommended to use this option
> whenever you bind a socket to a specific IP address.
2025-11-30 18:14:01 +01:00
phaer 4ef2a18e9e nixos/restic-rest-server: set ReusePort=true for socket to make restarts more robust 2025-11-30 18:13:52 +01:00
Sefa EyeogluandGitHub ef9b150518 nixos/borgbackup: Add option createCommand (#456803) 2025-11-14 11:41:07 +00:00
Felix Buehler 5949a18871 treewide: use externalPath 2025-11-10 20:51:44 +01:00
Artem Sheremet 628afad9a1 nixos/borgbackup: Add option createCommand
Add an option `service.borgbackup.jobs.<name>.createCommand`
that allows using `borg import-tar` rather than `borg create` to import
an archive.
2025-11-07 15:23:02 +00:00
Artem Sheremet 4818537fe5 nixos/borgbackup: Add option dumpCommandProducesTar
Add an option `service.borgbackup.jobs.<name>.dumpCommandProducesTar`
that allows using `borg import-tar` rather than `borg create` to import
an archive.
2025-10-29 19:37:42 +00:00
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é NeumannandSefa Eyeoglu 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
sweenu a46949cbf5 nixos/restic: rm -f tempfiles
In some cases, restic fails because the tempfiles haven't been
created. `rm -f` won't fail when the files don't exist.
2025-09-28 05:35:19 +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
SandroandGitHub 3bc0bc33c3 nixos/postgresql-backup: do not enable assertions when module is disabled (#437168) 2025-08-26 21:55:52 +02:00
Felipe SilvaandSandro Jäckel 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 SchijndelandGitHub 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
SandroandGitHub 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 BeharandGitHub 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 GalazynandJack Michaud 0fc73e5101 nixos/duplicati: add parameters-file option
Co-Authored-By: Jack Michaud <jack@lomz.me>
2025-06-30 12:12:27 +02:00
Wolfgang WaltherandMarcel 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