summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/backup
AgeCommit message (Collapse)Author
2024-04-18Merge pull request #298563 from Yarny0/tsm-client-updatePeder Bergebakken Sundt
tsm-client: 8.1.21.0 -> 8.1.22.0
2024-04-13nixos: remove all uses of lib.mdDocstuebinm
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
2024-04-10Merge pull request #296459 from MinerSebas/restic-rest-server-hardeningPascal Bach
nixos/restic-rest-server: Add additional service hardening
2024-04-10Merge pull request #302858 from tweag/infinisil-maintainerRick van Schijndel
treewide: Drop infinisil as maintainer from most packages
2024-04-09treewide: Drop infinisil as maintainer from most packagesSilvan Mosberger
I'm not going anywhere, I'm focusing my energy on other issues, and getting pinged as a maintainer for packages is a bit distracting (also I'm not using most of these packages anyways!)
2024-04-09Merge pull request #301528 from Mic92/borgbackup-fixJörg Thalheim
nixos/borgbackup: fix network-online.target warning
2024-04-06nixos/borgbackup: fix directory ownership regressionBjørn Forsman
Re-add separate creation of the ~/.config and ~/.cache directories so that they get correct ownership. Or else they get owned by root. systemd-tmpfiles also warns about it: machine # [ 3.022195] systemd-tmpfiles[472]: Detected unsafe path transition /home/user1 (owned by user1) → /home/user1/.cache (owned by root) during canonicalization of home/user1/.cache. machine # [ 3.024566] systemd-tmpfiles[472]: Detected unsafe path transition /home/user1 (owned by user1) → /home/user1/.config (owned by root) during canonicalization of home/user1/.config. Fixes: 8d3cf213db5a2323 ("nixos/borgbackup: replace activationScript via tmpfiles")
2024-04-04nixos/borgbackup: fix network-online.target warningJörg Thalheim
service runs after network-online.target but doesn't depend on it.
2024-03-28treewide: Fix all Nix ASTs in all markdown filesJanne Heß
This allows for correct highlighting and maybe future automatic formatting. The AST was verified to work with nixfmt only.
2024-03-28treewide: Mark Nix blocks in markdown as NixJanne Heß
This should help us with highlighting and future formatting.
2024-03-22tsm-client: 8.1.21.0 -> 8.1.22.0Yarny0
"Update History" (release notes): https://www.ibm.com/support/pages/node/6998343 ...does not list any security-relevant changes (mostly trademark name changes). Also, all URLs in package and module comments are updated.
2024-03-16nixos/restic-rest-server: Make the service socket activatedMinerSebas
2024-03-16nixos/restic-rest-server: Add additional service hardeningMinerSebas
2024-03-11Merge pull request #292025 from RaHoni/baculaTlsSandro
2024-03-08Merge pull request #278537 from wfdewith/syncoid-permissionsPeder Bergebakken Sundt
nixos/syncoid: add missing ZFS mount permission
2024-03-01nixos/bacula: refactor option generationRaHoni
The generation of the descriptions always used lib explicitly even thoughit was already specified with 'with'. Since using `with lib` is discouraged this was also changed to inherit.
2024-03-01nixos/bacula: Add support for TLSRaHoni
Added the majority of TLS options used for transport encryption. This uses a submodule since all resources share the same settings. The documentation can be found under: https://www.bacula.org/13.0.x-manuals/en/main/Bacula_TLS_Communications_E.html
2024-02-06Merge pull request #275621 from Yarny0/tsm-client-updateSandro
tsm-client: 8.1.20.0 -> 8.1.21.0
2024-01-10nixos/syncoid: add missing ZFS mount permissionWim de With
2023-12-29nixos/borgbackup: replace activationScript via tmpfilesnikstur
2023-12-19tsm-client: 8.1.20.0 -> 8.1.21.0Yarny0
"Update History" (release notes): https://www.ibm.com/support/pages/node/6998343 At the time of this writing, the "APAR" links of the "Update History" lead to 404. However, the abstracts indicate that this update is not security critical. Note that this update changed the GUI window title to "IBM Storage Protect" (the product itself was renamed with version 8.1.19.0 already). The commit at hand adapts the GUI vm test accordingly. Also, all URLs in package and module comments are updated.
2023-12-14Merge pull request #270084 from Atemu/nixos/snapraid-top-levelLinus Heckemann
nixos/snapraid: remove from top-level
2023-12-13nixos/restic: append PATH in wrappers instead of overwritingajs124
fixes "mount"
2023-12-10Merge pull request #272646 from onny/btrbk-stream-compressJonas Heinrich
nixos/btrbk: Add required stream_compress packages
2023-12-09nixos/btrbk: Add required stream_compress packagesJonas Heinrich
2023-12-08Merge pull request #272744 from hercules-ci/lib-lists-sortOnSilvan Mosberger
`lib.lists.sortOn`: init
2023-12-08nixos/btrbk: Optimize sortRobert Hensing
This avoids computing the prio more than necessary. The test evaluates to the same derivation hash.
2023-12-06nixos/borgbackup: add `listOf str` types to `extraArgs`h7x4
2023-12-06nixos/snapraid: remove from top-levelAtemu
I don't use this tool but saw it in the top level and that's not where it should live. This could arguably also be seen as a RAID; it's a bit of an in-between.
2023-12-03Merge pull request #253428 from Yarny0/tsm-freeformWeijia Wang
nixos/tsm-client: migrate to freeform settings (RFC42)
2023-12-02nixos/tsm-client: use `freeformType` for server configYarny0
`tsm-client` uses a global configuration file that must contain coordinates for each server that it is supposed to contact. This configuration consists of text lines with key-value pairs. In the NixOS module, these servers may be declared with an attribute set, where the attribute name defines an alias for the server, and the value is again an attribute set with the settings for the respective server. This is organized as an option of type `attrsOf submodule...`. Before this commit: Important settings have their own option within the submodule. For everything else, there is the "catch-all" option `extraConfig` that may be used to declare any key-value pairs. There is also `text` that can be used to add arbitrary text to each server's section in the global config file. After this commit: `extraConfig` and `text` are gone, the attribute names and values of each server's attribute set are translated directly into key-value pairs, with the following notable rules: * Lists are translated into multiple lines with the same key, as such is permitted by the software for certain keys. * `null` may be used to override/shadow a value that is defined elsewhere and hides the corresponding key. Those "important settings" that have previously been defined as dedicated options are still defined as such, but they have been renamed to match their corresponding key names in the configuration file. There is a notable exception: "Our" boolean option `genPasswd` influences the "real" option `passwordaccess', but the latter one is uncomfortable to use and might lead to undesirable outcome if used the wrong way. So it seems advisable to keep the boolean option and the warning in its description. To this end, the value of `getPasswd` itself is later filtered out when the config file is generated. The tsm-backup service module and the vm test are adapted. Migration code will be added in a separate commit to permit easy reversal later, when the migration code is no longer deemed necessary.
2023-12-02nixos/backup/tsm: use `lib.getExe'` for service command lineYarny0
2023-12-02nixos/tsm*: update product name and URLsYarny0
With the tsm-client 8.1.19.0 release, IBM renamed the product brand from "IBM Spectrum Protect" to "IBM Storage Protect": https://www.ibm.com/support/pages/node/6964770 . The package already got updated in commits 5ff5b2ae4cea8fa54fe14ad38e3bad1c7a226d63 and a4b7a6253286337e212da47835fd3785ea861abb . The commit at hand updates the modules accordingly.
2023-12-01nixos/postgresqlBackup: add Scrumplex as maintainerSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-12-01nixos/postgresqlBackup: add --rsyncable to compression programsSefa Eyeoglu
The --rsyncable option changes the behavior of gzip/zstd so that the resulting files can be incrementally backed up easily. Tools like Borg, rsync and xdelta can make use their deduplication/diff mechanisms more easily. In my local testing, this resulted in a 2% size increase for backup files. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-11-30treewide: replace `mkPackageOptionMD` with `mkPackageOption`h7x4
2023-11-30Merge pull request #261702 from h7x4/replace-mkoption-with-mkpackageoptionWeijia Wang
treewide: use `mkPackageOption`
2023-11-27treewide: use `mkPackageOption`h7x4
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
2023-11-26Merge pull request #265722 from nbraud/nixos/sudo-rs/btrbkMaciej Krüger
2023-11-22nixos/syncoid: add possibility to use string type for sshKey optionsdatafoo
The sshKey options do not need to be a valid path at build time. Using string instead allow use case when the path is not known at build time such as when using systemd credentials (e.g. `sshKey = "\${CREDENTIALS_DIRECTORY}/zfs-replication_ed25519";`).
2023-11-07nixos/restic: allow timer to be disabledRobert Obryk
2023-11-07Merge pull request #264882 from robryk/resticfixJanik
nixos/restic: fix #264696 and add a regression test
2023-11-06syncoid: disable PrivateUsers in systemd unitIvan Petkov
* leaving PrivateUsers=true appears to break when using zfs-2.2.0
2023-11-05nixos/btrbk: Support both Miller's sudo and sudo-rsnicoo
2023-11-01nixos/restic: fix #264696 and add a regression testRobert Obryk
Make sure that preStart and postStop are included in all cases when they are nonempty.
2023-10-30postgresql_11: removeMaximilian Bosch
As described in the release lifecycle docs from postgresql[1], v11 will stop receiving fixes as of Nov 9 2023. This means it's EOL throughout the entire lifetime of 23.11, so let's drop it now. A lot of examples are also referencing postgresql_11. Where it's sensible, use postgresql_15 as example now to avoid confusion. This is also handy because the LLVM 16 fix for postgresql is not available for postgresql 11 ;-) [1] https://www.postgresql.org/support/versioning/
2023-10-28Merge pull request #262084 from imlonghao/borgmatic/fix-262020Weijia Wang
borgmatic: fix deprecation warning check failed
2023-10-28borgmatic: fix deprecation warning check failedimlonghao
2023-10-27nixos/restic: remove s3CredentialsFile optionAlyssa Ross
This has been deprecated since 2021, so all users should have seen the warning and migrated by now.
2023-10-26Merge pull request #212087 from robryk/resticpathsPeder Bergebakken Sundt
nixos/backups/restic: handle cases when both dynamicFileFrom and paths are set