Commit graph

451 commits

Author SHA1 Message Date
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
Felix Buehler
808c6a991b nixos/services.netatalk: remove with lib; 2024-09-15 10:43:49 +02:00
Felix Buehler
fb9b81cec5 nixos/services.moosefs: remove with lib; 2024-09-15 10:43:49 +02:00
Felix Buehler
6bf4d51606 nixos/services.litestream: remove with lib; 2024-09-15 10:43:49 +02:00
Felix Buehler
8f72002794 nixos/services.kubo: remove with lib; 2024-09-15 10:43:49 +02:00
Felix Buehler
c51036c276 nixos/services.kbfs: remove with lib; 2024-09-15 10:43:49 +02:00
Robert Schütz
4c8a43881f nixos/samba: accept lists 2024-09-13 15:33:49 -07:00
Pascal Bach
e7bcab801c nixos/samba: ensure global section is always first
The order of the [global] section matters as settings
defined there are only applied to shares that are defines
after it.
2024-09-12 21:08:24 +02:00
Anthony ROUSSEL
603159799c nixos/samba: revert default values 2024-09-08 23:43:10 +02:00
Yuxuan Shui
036d05a466 nixos/samba: fix migration guide for securityType 2024-09-08 00:26:27 +01:00
Anthony ROUSSEL
1938960bfe nixos/samba: fix conditional activation of samba services 2024-09-07 10:16:03 +02:00
Anthony Roussel
56ae1fb452 nixos/samba: split and sync SystemD services with upstream 2024-09-06 17:53:22 +02:00
Anthony Roussel
ac29b192d8 nixos/samba: use mkEnableOption when possible 2024-09-06 17:53:22 +02:00
Anthony Roussel
3f0b4964c3 nixos/samba: add documentation to systemd.services 2024-09-06 17:53:22 +02:00
Anthony Roussel
7a3bba220d nixos/samba: add services.samba.smbd.enable option 2024-09-06 17:53:22 +02:00
Anthony Roussel
ee6c8db585 nixos/samba: reorganize and rename module options 2024-09-06 17:53:22 +02:00
Anthony Roussel
3b48a7e013 nixos/samba: add documentation 2024-09-06 17:53:22 +02:00