Commit Graph

467 Commits

Author SHA1 Message Date
Luflosi
5fcc08a907 kubo: 0.36.0 -> 0.37.0
https://github.com/ipfs/kubo/releases/tag/v0.37.0

Kubo v0.37.0 embeds the repository migration from repo version v16 to v17 and the kubo-fs-repo-migrations package will not reveive any more updates.
I'll keep the `kubo-fs-repo-migrations` and `kubo-migrator` packages around for now until a future version of Kubo no longer supports calling the external migration binaries.
Since the (newest) migrations are now built into Kubo, the NixOS module now needs to call `ipfs repo migrate --to=xx --allow-downgrade` instead of `fs-repo-migrations --to xx -y`.
The `--allow-downgrade` flag is only there for the unlikely situation that someone downgrades their local Kubo version with an overlay, separate channel input or similar means. It does however not work for rolling back the NixOS generation after a Kubo upgrade which increases the repo version (not all Kubo upgrades increase the repo version). This is because the Kubo version of the previous NixOS generation doesn't have the code for upgrading to or downgrading from the newer repo version.
Since we only have one version of Kubo in Nixpkgs at a time, migrations cannot be tested automatically. I manually verified that `ipfs repo migrate` uses binaries like `fs-repo-15-to-16` provided by the `kubo-fs-repo-migrations` packages for older migrations. I also tested that the migration from v16 to v17 works on my machine using the NixOS module.
2025-11-01 00:19:03 +01:00
Luflosi
5a967f4a1e nixos/kubo: increase maximum UDP buffer sizes
The [quic-go wiki](https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes) now recommends a larger maximum send- and receive buffer size.
The change to the documentation was made in April 2024: 597639d834...a3327deff8.

Without this change, the Kubo daemon will output this warning:
```
failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 4882 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
```
This can be seen while running the NixOS tests.
2025-11-01 00:19:01 +01:00
Philip Taron
01898764b6 treewide: replace "yes" else "no" usages to lib.boolToYesNo (#442387) 2025-10-28 16:25:46 +00:00
h7x4
f156bd830b nixos/orangefs: lib.mapAttrsToList -> lib.attrNames 2025-10-26 15:33:33 +09:00
Joshua Peek
175a0fc138 ceph: patch getopt path at build time 2025-10-24 09:40:07 -07:00
Aliaksandr
80f12557f5 treewide: replace "yes" else "no" usages to lib.boolToYesNo 2025-10-21 16:04:34 +03:00
Matthew Croughan
a81810ef34 nixos/a2boot: init (#425576) 2025-10-12 16:14:03 +00:00
h7x4
ceb57eba5a nixos/nfsd: use types.port 2025-09-22 16:33:04 +02:00
h7x4
a9f32669c8 nixos/tahoe: use types.port 2025-09-22 16:33:03 +02:00
Wolfgang Walther
f316c67316 nixos/eris-server: drop 2025-09-01 14:04:47 +02:00
Wolfgang Walther
f09f724ef8 maintainers: drop ehmry
This user is blocked since May 2025, thus can't maintain any packages
anymore.
2025-08-31 16:53:44 +02:00
dish
970dcca69c treewide: Fix links in module documentation 2025-08-25 12:55:11 -04: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
matthewcroughan
1ae83239bd nixos/a2boot: init 2025-07-15 22:21:35 +01:00
Luflosi
6af6c7ea8c kubo: 0.34.1 -> 0.35.0
https://github.com/ipfs/kubo/releases/tag/v0.35.0

This version introduces a new FUSE mount point, requiring some changes.
2025-07-06 12:56:00 +02:00
cr0n
f46be21864 nixos/rsyncd: fix ini format for global section (#385064)
According to the manpage the rsyncd.conf has a global section without a
module header. Settings for listening port or bind address must be put
there and will not work if defined in a global submodule (i.e. below a
"[global]" header).

This commit changes the ini format generator for the rsyncd service to
allow a global section in the config file without a submodule header.

Fixes #304293

Credits to @nydragon

* remove retrocompat, add incompat release notes
2025-04-26 17:46:51 +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
Nathan Fish
950324a23e nixos/ipfs-cluster: init
Co-authored-by: Sorki <srk@48.io>
2025-03-25 16:34:16 +01:00
h7x4
ab0564bd10 treewide: add documentation for nixos systemd units 2025-03-12 18:00:38 +01:00
Peder Bergebakken Sundt
c78dd5a021 nixos/webdav: add package option (#375129) 2025-02-16 22:00:23 +01:00
dish
5194bc27ae nixos/glusterfs: fix documentation link formatting 2025-02-12 21:03:21 +01:00
Peder Bergebakken Sundt
953f72e76e nixos/*: tag manpage references 2025-01-27 02:47:01 +01:00
Solomon Victorino
83e55ef36b nixos/webdav: add package option 2025-01-19 11:23:02 -07:00
piegames
dd7d5339f7 treewide: Fix incorrect string indentations 2025-01-07 19:49:28 +01:00
liberodark
10f6382917 nixosModules.MooseFS: Format 2024-12-22 09:33:01 +01:00
liberodark
b3429b3ed3 nixosModules.MooseFS: Improve 2024-12-18 19:22:20 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
K900
0982481766 nixos/samba: add convenient option to enable usershares 2024-12-04 15:24:00 +03:00
Felix Buehler
e4ffb753b1 nixos/services.glusterfs: remove with lib; 2024-11-28 19:08:42 +01:00
Felix Buehler
4dbf3a75ae nixos/services.drbd: remove with lib; 2024-11-28 19:08:41 +01:00
Felix Buehler
44985668d8 nixos/services.diod: remove with lib; 2024-11-28 19:08:41 +01:00
Felix Buehler
a9748cc118 nixos/services.cachefilesd: remove with lib; 2024-11-28 19:08:41 +01:00
Luflosi
5742cb2a48 kubo: 0.29.0 -> 0.30.0
https://github.com/ipfs/kubo/releases/tag/v0.30.0
2024-11-21 19:12:27 +01:00
Luflosi
9e2866d215 kubo-migrator: rewrite
- Migrate to pkgs/by-name
- Format with nixfmt-rfc-style
- Make it possible to remove support for very old migrations in the future by increasing the `minRepoVersion` parameter
- Rename kubo-migrator-all-fs-repo-migrations to kubo-fs-repo-migrations since it may no longer include all migrations
- Add an alias for kubo-migrator-all-fs-repo-migrations to keep backwards compatibility
- Update descriptions to differentiate between kubo-migrator and kubo-migrator-unwrapped and better describe the purpose of the migrator
- Add a description to every individual migration
- Add a description to kubo-fs-repo-migrations
- Fetch the source code of the individual migrations from their specific Git tags, like upstream intends
- Enable tests for some migrations
- Check that the migrations don't crash on startup
- Mark two broken migrations as broken. They are not compatible with the latest Go versions and upstream is not interested in fixing this
- Change code to allow most updates to be done by only changing three lines (add new version and change git tag and hash)
- Add a stub for any disabled or broken migration to prevent downloading unsigned binaries from the internet, see https://github.com/ipfs/fs-repo-migrations/issues/148#issuecomment-2351355627 and https://github.com/ipfs/fs-repo-migrations/issues/188
- Use `lib.getExe` instead of hardcoding the binary name in the kubo NixOS module
- Use `substituteInPlace` with `--replace-fail` instead of `--replace`
2024-11-20 16:17:14 +01:00
Markus Kowalewski
d22d60f3ac nixos/saunafs: add module + test 2024-10-12 19:13:00 +02:00
Bjørn Forsman
48908e5b86 nixos: improve systemd slice names
Following
https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Description=,
update slice names to be short, descriptive and capitalized.
2024-10-02 20:24:13 +02:00
Jörg Thalheim
b4b8ef5bb6 nixos/network-filesystems/samba: fix eval 2024-09-15 11:02:11 +02:00
Felix Buehler
76831f7a1b nixos/services.yandex-disk: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
bc58f67812 nixos/services.xtreemfs: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
9ffa253b87 nixos/services.webdav: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
e71c09b8f8 nixos/services.webdav-server-rs: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
43235a1a61 nixos/services.u9fs: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
443dc608d2 nixos/services.tahoe: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
f0f841be80 nixos/services.samba: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
4174027fe9 nixos/services.samba-wsdd: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
442fa2e366 nixos/services.rsyncd: remove with lib; 2024-09-15 10:43:50 +02:00
Felix Buehler
23fed458df nixos/services.orangefs.server: remove with lib; 2024-09-15 10:43:49 +02:00
Felix Buehler
6f4eeb7722 nixos/services.orangefs.client: remove with lib; 2024-09-15 10:43:49 +02:00
Felix Buehler
e14a371aac nixos/services.nfs.server: remove with lib; 2024-09-15 10:43:49 +02:00