494 Commits
Author SHA1 Message Date
dotlambdaandGitHub 4a8bdd117f nixos/systemd: allow listenStreams to contain ports (#540457) 2026-07-18 04:04:55 +00:00
Robert Schütz 7d57ab127e nixos/rsyncd: specify listenStreams as int 2026-07-10 10:57:39 -07:00
Robert Schütz 7053e317be nixos/nfsd: allow exports to be an attrset
This is in the spirit of RFC 42.
2026-07-05 16:33:48 -07:00
Leonard-Orlando MenzelandLeonard-Orlando Jonathan Menzel 1501c08af3 nixos/kubo: fix typo in fuseAllowOther setting 2026-06-27 11:03:35 +00:00
Pascal BachandGitHub 3138741ff4 nixos/glusterfs: fix dangling glusterfind hook symlink and install group presets (#534709) 2026-06-25 20:29:38 +00:00
Aliaksandr 70c0f1059c nixos/glusterfs: install group presets into /var/lib/glusterd
Upstream installs the volume option presets into
$(localstatedir)/lib/glusterd/groups, which ends up under the package's
$out/var rather than /var, so `gluster volume set <vol> group <name>`
failed for metadata-cache, nl-cache, virt, etc. Copy them into place
alongside the existing hooks rehydration.

Fixes #33159.

Assisted-by: claude-code with claude-opus-4-8[1m]-high
2026-06-23 22:19:22 +03:00
Aliaksandr eedc3027d6 nixos/glusterfs: fix dangling glusterfind hook symlink
The hooks tree copied into /var/lib/glusterd contains one symlink,
S57glusterfind-delete-post, whose relative target resolves inside the
package's $out but dangles once copied verbatim into / (the referent
lives in the Nix store, not under /libexec). Pass --copy-unsafe-links so
rsync dereferences symlinks pointing outside the tree into real files.

Fixes #257863.

Assisted-by: claude-code with claude-opus-4-8[1m]-high
2026-06-23 22:19:06 +03:00
Martin Weinelt bd44b63188 nixos/kubo: enable programs.fuse 2026-06-20 17:29:40 +02:00
Niklas Hambüchen 2797ddb1f3 nixos/ceph: Create /var/log/ceph to enable logging 2026-06-18 10:32:51 +00:00
znmz ff1f398de0 treewide: fix typos in all markdown files 2026-05-17 13:02:47 +03:00
Tom Hunze 9d34e429c2 nixos/xtreemfs: drop
xtreemfs has been broken since October 2025 [1] and has seen no upstream
changes since October 2024 [2].

[1] https://hydra.nixos.org/job/nixpkgs/unstable/xtreemfs.x86_64-linux/all
[2] https://github.com/xtreemfs/xtreemfs
2026-05-05 21:01:42 +02: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
benaryorg 5e2fa65c2d nixos/kubo: IFD-less merging of defaults
No more IFD for the defaults.
Specifically the merging with the config values is now done at runtime.
The output of the command for generating the defaults is also specifically stripped of the generated credentials, making it reproducible.

This introduces caveats in terms of overwriting as it is now dependent on jq's merge behaviour.

A cleaner solution would probably move from specifying a single JSON-esque datastructure to specifying an attrset with keys and values being those of `ipfs config set` respectively.
This would allow setting individual keys to objects, removing entries, and more fine grained control in general.
However that would introduce severe backwards incompatibilities, so this commit is merely a "minimum viable fix" so to say.

Signed-off-by: benaryorg <binary@benary.org>
2026-03-29 01:19:40 +00:00
Dyego Aurélio 28096cc5e3 treewide: apply nixfmt 1.2.0 2026-01-22 18:37:56 -03: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
Quentin Smith 7e02909c99 openafs: Move CellServDB to an attribute on pkgs.openafs
This allows it to be used outside NixOS.
2026-01-06 15:38:44 -05:00
Quentin Smith 5167ce3c6a nixos/openafs: Merge user-supplied global CellServDB
This exposes a new configuration option,
`services.openafsClient.globalCellServDBFile`, which can be used to pass
an existing CellServDB file (such as the one distributed by
grand.central.org).

Also, the global CellServDB is now filtered to remove any cells
configured in `services.openafsClient.cellServDB`, so local
configuration can override the global file.
2026-01-06 15:37:45 -05:00
Quentin Smith a72caaa01c nixos/openafs: Extend CellServDB options
Previously, servers could only be supplied for ThisCell. This meant that
if a server and client have different ThisCell values, the client's
CellServDB couldn't be configured for its own server.

The previous list values are still accepted, but now a CellServDB option
can also be specified as an attrset of cell names to servers.
2026-01-06 15:37:41 -05:00
Markus KowalewskiandGitHub 41725476da nixos/moosefs: move to mfsgui (#468988) 2025-12-16 09:29:45 +00:00
rnhmjoj bc3fc17951 nixos/diod: use upstream systemd unit 2025-12-12 16:46:36 +01:00
liberodark 1111f07405 nixos/moosefs: move to mfsgui 2025-12-08 14:50:59 +01:00
Tobias M e45b6bb9dd treewide: replace networking.target with network.target
We do not create networking.target anywhere ourselves and it is not one
of the default targets defined in systemd.special(7).
References to networking.target are therefore most likely typos and
meant to refer to network.target, which does exist.
2025-11-28 22:05:25 +01:00
SandroandGitHub 2063f11017 nixos/kubo: add Mounts.FuseAllowOther setting for better documentation of the default value (#454579) 2025-11-23 04:10:12 +00:00
SandroandGitHub 3b7bc6a4fc Adjust webdav settings after v5 release (#456544) 2025-11-23 04:01:10 +00:00
Dimakow 30a0fe94a3 Adjust webdav settings after v5 release
see https://github.com/hacdias/webdav/issues/162
2025-11-02 14:37:08 +01:00
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: https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes/_compare/597639d834d5d6c242d37d49a02ed04ca65332c9...a3327deff89d2428d48596ce0e643531f9944f99.

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 TaronandGitHub 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
Luflosi e4cdf3a3a1 nixos/kubo: only set programs.fuse.userAllowOther if required
If `services.kubo.settings.Mounts.FuseAllowOther` is set to `false`, we don't need to set `programs.fuse.userAllowOther` to `true`.
2025-10-22 17:36:29 +02:00
Luflosi c327578e09 nixos/kubo: add Mounts.FuseAllowOther setting for better documentation of the default value
The `Mounts.FuseAllowOther` setting could be used before to override the default but it was not obvious that the default was `true`.

Since this option is irrelevant if the `--mount` flag isn't passed to the daemon (the `autoMount` NixOS option is set to false) the Kubo daemon ignores this setting in this case. This means enabling this option conditionally or not makes no difference in practice, so it might as well be enabled all the time.
2025-10-22 17:36:28 +02:00
Aliaksandr 80f12557f5 treewide: replace "yes" else "no" usages to lib.boolToYesNo 2025-10-21 16:04:34 +03:00
Matthew CroughanandGitHub 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
cr0nandGitHub 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](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/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 Fishandsorki 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 SundtandGitHub c78dd5a021 nixos/webdav: add package option (#375129) 2025-02-16 22:00:23 +01:00
dishandValentin Gagarin 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