Commit graph

38208 commits

Author SHA1 Message Date
Sandro Jäckel c44d6d705d nixos/mediagoblin: fix initial media reprocessing with gmg
Running `mediagoblin-gmg reprocess initial` before would fail with
missing GST_PLUGIN_PATH and tools in PATH.

(cherry picked from commit 81d2a488e6)
2025-05-28 14:15:09 +00:00
Sandro Jäckel b7444e5d11 nixos/mediagoblin: fix gmg argument parsing
Before the argument to mediagoblin-gmg would be passed to the actual command
and the rest to sh which is obviously nonsense.

(cherry picked from commit dd63ca898e)
2025-05-28 14:15:09 +00:00
liberodark c3d89bc2ea nixos/postfix: add slow domain
(cherry picked from commit b9ecd30d81)
2025-05-27 21:25:09 +00:00
Golbinex b59accc8e9 nixos/adguardhome: Update binary path
The compiled binary filename has upper cases

(cherry picked from commit 6e99825c18)
2025-05-27 09:50:50 +00:00
Rafael Fernández López 9e6003f0d5 virtualisation/docker: fix nvidia container wrapper
(cherry picked from commit 7e42e4431b)
2025-05-27 09:35:26 +00:00
Aleksana f70205231d
[Backport release-25.05] starship: add xonsh shell configuration (#411035) 2025-05-26 17:30:12 +08:00
nat 8c8ba680ec nixos/limine: substituteAll -> replaceVarsWith
(cherry picked from commit e51e0da386)
2025-05-26 14:07:33 +05:30
programmerlexi 90f3e90346 nixos/limine: fix boot entry not being created properly (#410935)
(cherry picked from commit 2c673b6e67)
2025-05-26 13:26:56 +05:30
cswimr 77e5e2914c starship: add xonsh shell configuration
(cherry picked from commit bb4ba2ab1c)
2025-05-26 07:17:48 +00:00
Tristan Ross 4d0c8dc19e
[Backport release-25.05] nixos/security: add landlock, yama, and bpf defaults (#410523) 2025-05-25 23:13:34 -07:00
Wolfgang Walther 7622fec1ba
[Backport release-25.05] zoom-us: allow to select xdg-desktop-portal packages (#410258) 2025-05-26 06:07:09 +00:00
Aleksana 58404b11f1
[Backport release-25.05] nixos/bees: fix option example (#410992) 2025-05-26 13:28:17 +08:00
Sveske_Juice b6dfcedefb nixos/syncthing: fix cert/key permission error
(cherry picked from commit 3303249ed2)
2025-05-26 04:50:35 +00:00
FliegendeWurst 48b018d02a nixos/bees: fix option example
The attribute name usually corresponds to the path of the filesystem.

(cherry picked from commit 2e68a674bd)
2025-05-26 03:10:59 +00:00
Gerg-L 764862b479 nixos/direnv: fix silent option... again
(cherry picked from commit 487d1383c8)
2025-05-24 19:02:59 +00:00
Tristan Ross dc600da59c nixos/security: add landlock, yama, and bpf defaults
(cherry picked from commit 22f2e258af)
2025-05-24 13:37:57 +00:00
Yarny0 279ee1a7b9 nixos/programs: add zoom-us module
The zoom-us package can be build with pulseaudio and with
support for one or more xdg-desktop-portal implementations.
This new module sets the proper build options
from the system configuration,
and adds the resulting package to `systemPackages`.
If an individual `zoom-us` package is assigned to the
`package` option with `package = zoom-us.override { ... };`,
arguments given to `.override` will take precedence
over the options determined by the module.
This permits to explicitly enable or disable some zoom-us
features while keeping the module's choices for other features.

Co-authored-by: Philip Taron <philip.taron@gmail.com>
(cherry picked from commit 1a5059ded6)
2025-05-23 18:49:07 +00:00
Aleksana ddd0a706be
[Backport release-25.05] nixos/orca: Make available to gdm greeter (#409142) 2025-05-23 21:20:41 +08:00
Aleksana ed3e8fdc88
[Backport release-25.05] nixos/paperless: expose manage package (#408739) 2025-05-23 15:19:26 +08:00
Doron Behar 24b41a7f8b nixos/i18n: Re-add special handling of LANGUAGE
This reverts commit 263297b4e5 while also
explaining in the docs where exactly LANGUAGE is ignored, and why.

Fixes #409306.

(cherry picked from commit 82dfbe95f5)
2025-05-23 06:25:48 +00:00
Aleksana f89c89a1e7
[Backport release-25.05] netbird: fix typo in warning message (#410021) 2025-05-23 11:48:10 +08:00
Pop 298a25eeec netbird: fix typo in warning message (#406819)
(cherry picked from commit 017276a4aa)
2025-05-23 03:32:43 +00:00
nyukuru 690b077209 nixos/foot: fix zshrc
Fixes error 'command not found: add-zsh-hook'

(cherry picked from commit 2c7a56cee9)
2025-05-23 03:27:28 +00:00
hustlerone d5138ca3d6 nixos/limine: tidy up the boot menu
(cherry picked from commit de6905ee37)
2025-05-22 21:03:39 +05:30
Niklas Korz 26506af385 nixos/meilisearch: use meilisearch_1_11 for stateVersion below 25.05
(cherry picked from commit aac2e41ce0)
2025-05-22 13:54:53 +00:00
Fugi 63b6a715ed nixos/gtklock: init
(cherry picked from commit 65a759f7b4)
2025-05-22 03:49:50 +00:00
Morgan Jones 423873feaa nixos/tpm2: default pkcs#11 module based on abrmd config
Since there are now variants of tpm2-pkcs11 with and without ABRMD
support (for the kernel resource manager), ensure we pick the correct
default.

Fixes an accidental backwards incompatibility with the module.

(cherry picked from commit 9c1564e395)
2025-05-22 00:37:29 +05:30
programmerlexi f5c8555577 nixos/limine: don't modify boot order on bootloader update
(cherry picked from commit 95030d7eb3)
2025-05-21 23:38:10 +05:30
Aleksana 6c8cd30a08
[Backport release-25.05] matrix-continuwuity: init at 0.5.0-rc.5; nixos/matrix-continuwuity: init (#407850) 2025-05-22 00:11:54 +08:00
Yaya a1d1c7afd9 nixos/gitlab: update minimum PostgreSQL version assertion
GitLab 18.0.0 requires at least PostgreSQL 16.

https://docs.gitlab.com/18.0/install/requirements/#postgresql
(cherry picked from commit ee58f11546)
2025-05-21 12:57:34 +02:00
programmerlexi d8c429b16a nixos/limine: carefully remove files instead of nuking them
(cherry picked from commit a094b5d8cc)
2025-05-21 15:42:12 +05:30
programmerlexi ecc74afaf4 nixos/limine: atomically copy files
(cherry picked from commit 2c7659b1ff)
2025-05-21 15:42:12 +05:30
Evan Scamehorn e9461aa3e3 nixos/spotifyd: Fix 404 URLs (#408504)
(cherry picked from commit a4e1ad5521)
2025-05-21 06:46:57 +00:00
Jan Tojnar 3e574f1237 nixos/orca: Make available to gdm greeter
Without this, the greeter is unable to see `orca` program on `PATH`
and so `${gdm}/share/gdm/greeter/autostart/orca-autostart.desktop`
will fail to start it. As a result, screen reader would not work
on the login screen.

(cherry picked from commit 9af27f1cb5)
2025-05-20 18:09:17 +00:00
benaryorg f551d91f2e nixos/systemd: unconditional systemd-journald-audit.socket
Containers did not have *systemd-journald-audit.socket* in *additionalUpstreamSystemUnits*, which meant that the unit was not provided.
However the *wantedBy* was added without any additional check, therefore creating an empty unit with just the *WantedBy* on *boot.isContainer* machines.
This caused `systemd-analyze verify` to fail:

```text
systemd-journald-audit.socket: Unit has no Listen setting (ListenStream=, ListenDatagram=, ListenFIFO=, ...). Refusing.
systemd-journald-audit.socket: Cannot add dependency job, ignoring: Unit systemd-journald-audit.socket has a bad unit file setting.
systemd-journald-audit.socket: Cannot add dependency job, ignoring: Unit systemd-journald-audit.socket has a bad unit file setting.
```

The upstream unit already contains the following, which should make it safe to include regardless:

```ini
[Unit]
ConditionSecurity=audit
ConditionCapability=CAP_AUDIT_READ
```

For reference, this popped up in the context of #[360426](https://redirect.github.com/NixOS/nixpkgs/issues/360426) as well as #[407696](https://redirect.github.com/NixOS/nixpkgs/pull/407696).

Co-authored-by: Bruce Toll <4109762+tollb@users.noreply.github.com>
Signed-off-by: benaryorg <binary@benary.org>
(cherry picked from commit e434130d0b)
2025-05-20 13:30:26 +00:00
Doron Behar ef5bc91e93 nixos/i18n: Remove special handling of LANGUAGE
Partially revert #179194 which first filtered
`extraLocaleSettings.LANGUAGE`. Indeed this environment variable is
given precedence according to:

https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html

So using it will simply make all other `extraLocaleSettings` be ignored
in practice, but the OS shouldn't ignore it when aggregating the locales
required in general, as this setup should still be legitimate, and it
may even be useful if you wish to set it by default and use `env -u
LANGUAGE` for some programs.

(cherry picked from commit 263297b4e5)
2025-05-20 12:17:52 +00:00
Doron Behar fdba215260 i18n: Add charset related settings
Fixes #404758

(cherry picked from commit e8581078a1)
2025-05-20 12:17:52 +00:00
Rebecca Kelly e4d44b9ac6 deliantra-server: remove
I'm not really using or maintaining it anymore and it's getting increasingly bit-rotted.

(cherry picked from commit b8a2f7fff9)
2025-05-20 02:39:44 +00:00
Jonas Sander c7eaa2ddb2 nixos/paperless: expose manage package (#405610)
(cherry picked from commit 309871725f)
2025-05-19 14:38:20 +00:00
Michele Guerini Rocco c2db6a61f2
[Backport release-25.05] nixos/pdns-recursor: deprecate settings, add yaml-settings (#408645) 2025-05-19 16:30:26 +02:00
rnhmjoj fb77c246cb nixos/pdns-recursor: deprecate settings, add yaml-settings
(cherry picked from commit b71d4f5fb3)
2025-05-19 08:30:52 +00:00
Niklas Korz ed59c106c7 nixos/signald: drop
(cherry picked from commit 9958792cae)
2025-05-18 19:45:40 +00:00
Ramses ce3af7849d
[Backport release-25.05] nixos/specialisation: escape and restrict specialisation names (#408069) 2025-05-17 22:39:49 +02:00
Winter 258dca1e95 nixos/profiles/nix-builder-vm: allow the system derivation to be substituted
Consider a user wanting to set up the Linux builder for the first time,
but with a slightly more generous allocation of resources compared to
the default. They'll do something like this:

```
{
  virtualisation.cores = 3;
  virtualisation.darwin-builder = {
    diskSize = 40 * 1024;
    memorySize = 4 * 1024;
  };
}
```

This will fail with an error like this:

```
error: a 'aarch64-linux' with features {} is required to build '/nix/store/3acpgmwqwnk8g2gc5r05ar2lvmn01b8a-builder.pl.drv', but I am a 'aarch64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}
```

But why would they have to rebuild the NixOS system?! All they did was
change the arguments passed to QEMU, and nothing those options control
would affect the NixOS configuration itself... right?

`config.system.build.toplevel` is defined with `allowSubstitutes` set to
`false` by default, which makes it so that the toplevel can't be
substituted if Nix is trying to use it "directly." So because the above
example would have to rebuild the VM runner, which references toplevel
directly, Nix refuses to substitute it, unless `always-allow-substitutes
= true` is set as a Nix option. (In the case where the QEMU options
aren't changed at all, Nix just substitutes the runner, which sidesteps
this issue as the runner itself doesn't use toplevel as an input.)

(cherry picked from commit 747c55e702)
2025-05-17 19:40:59 +00:00
toborwinner 1b2b3e1ea2 nixos/specialisation: escape and restrict specialisation names
Prevent the specialisation names from containing a forward slash.
Also escape them to allow for spaces in specialisation names.

(cherry picked from commit 2b9fc0ccc5)
2025-05-17 17:48:07 +00:00
Marcin Serwin f4668fe0d4 nixos/sourcehut: adapt to new versions
(cherry picked from commit fa148f9b48)
2025-05-17 15:34:17 +00:00
C0D3 M4513R dcc7993ccc acme: Add csr option
Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com>
(cherry picked from commit 754412b4ae)
2025-05-17 09:24:49 +00:00
Niko Cantero b280fd97dc matrix-continuwuity: init at 0.5.0-rc.5; nixos/matrix-continuwuity: init
(cherry picked from commit c878ad10fb)
2025-05-17 09:05:49 +00:00
Leona Maroni abf9d678aa
beta release 2025-05-16 19:04:43 +02:00
isabel 6dc8edf1f5
nixos/minecraft-server: update outdated links (#405554) 2025-05-16 16:30:39 +01:00
Sandro c0cd90d343
nixos/etc: remove rogue continue (#399915) 2025-05-16 15:08:17 +02:00
Adam C. Stephens d25ea431bd
Headscale service wait before restart (#400053) 2025-05-16 08:30:08 -04:00
isabel 79f86a061d
Add autoenv to modules list (#407568) 2025-05-16 11:27:46 +01:00
Borja Clemente 4fd9814cc8
Add autoenv to modules list
Signed-off-by: Borja Clemente <borja.clemente@gmail.com>
2025-05-16 11:26:05 +02:00
Ratchanan Srirattanamet ff4214fabd nixos/kimai: fix upgrading to Kimai 2.32 by clearing cache earlier
During testing of Kimai 2.32, it's been found that fixes done in PR
371917 [^1] is not enough to prevent error in the case of upgrading from
2.31 to 2.32.

Hinted by an upstream issue [^2], make sure that the cache is cleared
before running `kimai:install`, not after. This fixes upgrading from
2.31 to 2.32, and should prevent similar issue from popping up again.

[^1]: https://github.com/NixOS/nixpkgs/pull/371917
[^2]: https://github.com/kimai/kimai/issues/5437
2025-05-16 11:19:58 +02:00
Aleksana 86628e2b8d
nixos/nm-applet: fix service starting too early in some cases (#406277) 2025-05-16 16:52:22 +08:00
Seth Flynn 7c2f22b376
nixos/hddfancontrol: use attrset for config (#394826) 2025-05-15 13:49:19 -04:00
lassulus 84049bd248
nixos/syncthing: define and handle encryptionPassword option (#383442) 2025-05-15 19:44:22 +02:00
Jenny 26c6a14a9a
nixos/librenms: seed database in module, not only in test (#406546) 2025-05-15 19:17:41 +02:00
Arian van Putten 871526be1f
nixos/image/repart: Use own assertions / warnings. (#406940) 2025-05-15 19:14:53 +02:00
Maximilian Bosch 26126c75df
Merge: Use cacert in Nextcloud (#406252) 2025-05-15 18:50:53 +02:00
Vladimír Čunát e06158e58f
staging-next 2025-05-07 (#404858) 2025-05-15 18:42:40 +02:00
provokateurin 12f8199080
nixos/nextcloud: Override cacert package with config.security.pki.caBundle 2025-05-15 18:19:52 +02:00
isabel 84c1069ebe
nixos/cloudflared: fix cert.pem installation (#407128) 2025-05-15 15:32:56 +01:00
nixpkgs-ci[bot] d1034e4a8a
Merge master into staging-next 2025-05-15 12:07:04 +00:00
Sandro 5077b9edb6
nixos/headscale: fix derp.auto_update_enabled option (#406108) 2025-05-15 11:04:01 +02:00
Pedro Alves 75c7d0908e nixos/cloudflared: fix cert.pem installation
There was a typo in the systemd service definition for cloudflared which
meant that the cert.pem file was not being correctly exposed.
2025-05-14 20:13:42 +01:00
nixpkgs-ci[bot] ee27ba77b2
Merge master into staging-next 2025-05-14 18:05:41 +00:00
Luj b98b4f43bd
readeck: 0.17.1 -> 0.18.2 (#405276) 2025-05-14 17:38:22 +02:00
Sandro 60571a4fa9
nixos/gancio: fix cli not passing all args (#401581) 2025-05-14 15:11:36 +02:00
K900 a27047792f Merge remote-tracking branch 'origin/master' into staging-next 2025-05-14 12:29:40 +03:00
phaer 8a2195e94e repart: fix whitespace in option descriptions
I mistakenly added extra whitespace in
https://github.com/NixOS/nixpkgs/pull/401872 which negatively affects
aesthetics of our documentation.

Thought it was part of nixfmt-rfc-styles output, but can't reproduce.
Might have had configured the wrong nixfmt.
2025-05-14 09:32:18 +02:00
Vladimír Čunát bf7544999c
Merge master into staging-next 2025-05-14 08:12:15 +02:00
Will Fancher 26ccfb7a8c nixos/image/repart: Use own assertions / warnings.
It was easy to accidentally trigger infinite recursion if you depended
on `toplevel` in any way before. For instance, if you used
`CopyBlocks` with an image containing `toplevel`. This was because
`toplevel`'s assertion / warning logic has to be evaluated, but that
means evaluating `image.repart`'s assertions / warnings, which
requires evaluating the `repartConfig` attrsets to check for malformed
`Label`s. That causes the module system to type check *all*
`repartConfig` keys, even though most of them aren't used in the
assertions / warnings. So evaluating `system.build.image` evaluates
`repartConfig.CopyBlocks`, which evaluates `toplevel`, which evaluates
assertions / warnings, which evaluates `repartConfig.CopyBlocks` to
type check it. Infinite loop.

Even ignoring this recursion problem, it's still better for the repart
module to have its own assertions / warnings options. You don't have
to use `toplevel` in a repart image, so its assertions / warnings
would have been ignored in that case anyway. This way they're *always*
checked when you build an image.
2025-05-14 01:24:43 -04:00
Will Fancher 4b0d1225f5 lib/asserts: Factor out NixOS's toplevel assertion / warning logic. 2025-05-14 01:21:10 -04:00
Jonas Heinrich 002ebbc4de
oncall: init at 2.1.7; nixos/oncall: init (#388723) 2025-05-13 23:21:54 +02:00
Robert Hensing 4e4fd664d5
nixos/activation: Fix shellcheck test failure (#406500) 2025-05-13 21:34:42 +02:00
jade 0784176a58
darwin.linux-builder: split create-builder script (#406533) 2025-05-13 11:38:51 -07:00
nixpkgs-ci[bot] 9948288aca
Merge master into staging-next 2025-05-13 18:05:27 +00:00
Arne Keller 2264d87679
cato-client: init at 5.2.1.1, nixos/cato-client: init (#339533) 2025-05-13 17:36:06 +02:00
linsui bff193eaba readeck: 0.17.1 -> 0.18.2 2025-05-13 23:32:38 +08:00
Jörg Thalheim 5adbb5f72a
darling: drop (#405727) 2025-05-13 16:35:40 +02:00
Sandro Jäckel 314cfdddb5
nixos/librenms: seed database in module, not only in test
To properly use librenms and create a user, you need the seeded roles
like admin.
2025-05-13 14:24:27 +02:00
Paul Haerle d1a07176d3
oxidized: switch to tmpfiles (#402646) 2025-05-13 14:21:16 +02:00
nixpkgs-ci[bot] f13b927ceb
Merge master into staging-next 2025-05-13 12:07:00 +00:00
Maximilian Bosch 0be521cb0e
Merge: nixos/nextcloud: use LoadCredential to read services.nextcloud.secretFile (#405970) 2025-05-13 13:45:36 +02:00
nixpkgs-ci[bot] d665ddf4a8
Merge master into staging-next 2025-05-13 06:05:56 +00:00
Martin Weinelt 5cea3235bd
nixos/frigate: create model cache dir (#405416) 2025-05-13 04:36:43 +02:00
nixpkgs-ci[bot] 86051b5e95
Merge master into staging-next 2025-05-13 00:16:56 +00:00
Martin Weinelt 8fc7c1593d
nixos/music-assistant: wait for network-online.target
This is required because the server fails to start when it cannot find
a route to send out mDNS packets.
2025-05-13 00:55:12 +02:00
Rebecca Turner 2263f723c1
darwin.linux-builder: split create-builder script
The current workflow for starting the `linux-builder` on macOS is to run
`nix run nixpkgs#darwin.linux-builder`, which adds keys to the store and
then starts the builder.

Adding the keys requires user input (due to `sudo`) but the actual
builder should just stay running in the background somewhere.

I'd like to automate this process, but it's currently rather complex:
the first part of the script needs user input for `sudo`, and then
there's no signal when the process has finished starting up. The user
will need to see stdout/stderr during the first part, which makes it
challenging to capture it for the second part to determine when startup
has finished.

To fix this, I've split the `create-builder` script into an `add-keys`
script (interactive) and a `run-builder` script (background). These new
scripts are exposed in the `passthru` attributes for external users. The
`create-builder` script is now a simple call of `add-keys` and then
`run-builder`.

See: https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder
2025-05-12 12:18:33 -07:00
nixpkgs-ci[bot] 3578961ffe
Merge master into staging-next 2025-05-12 18:06:01 +00:00
Arian van Putten fb4135b611
image/repart: repart.imageFile(BaseName) -> image.baseName, image.extension (#401872) 2025-05-12 19:03:54 +02:00
Berk D. Demir e4bf5ce70d nixos/activation: Fix shellcheck test failure
lib/test.nix relies on `fileset.toSource` which creates a source dir
with the files of interest. `testers.shellcheck` passes all the files in
the source dir to shellcheck. The issue is related to relative path
sourcing, i.e. `source ./lib.sh` where shellcheck cannot make any
assumptions about the working directory.

Options were:
1) Disable this warning with a directive
   Prior disabling in the tree:
    - pkgs/tools/nix/info/info.sh
    - nixos/modules/testing/test-instrumentation.nix

2) Set source-path to SCRIPTDIR with a directive
   https://github.com/koalaman/shellcheck/wiki/Directive#source-path

   Even though we don't enable external script following for shellcheck
   with `-x` flag given every file in the source dir is passed, this
   directive seems to capture the intent to help shellcheck a bit
   better.

Went with option 2.
2025-05-12 09:58:28 -07:00
Sandro 19bbee4694
nixos/networkd-dispatcher: use writeShellScript to ease use (#370347) 2025-05-12 18:09:18 +02:00
Sandro 95afdf2b49
nixos/gancio: properly quote
Co-authored-by: Wroclaw <wroclaw223@outlook.com>
2025-05-12 17:55:46 +02:00
Sandro 49d1eedf46
nixos/postsrsd: expose socketPath via module option (#406386) 2025-05-12 15:17:13 +02:00
nixpkgs-ci[bot] c5997abf8e
Merge master into staging-next 2025-05-12 12:07:01 +00:00
K900 5b99c79903
nixos/udev: verify udev rules with udevadm (#406284) 2025-05-12 12:35:34 +03:00
Oliver Schmidt 047a804449 nixos/postsrsd: expose socketPath via module option
Services utilising postsrsd need to connect to it via a Unix socket.
While the path to that socket is static as of now, the discoverability
of that path suffers from the lack of module documentation and a
scattered definition of the individual path components over at least
three lines, even when reading the module source.

By exposing the socket path as a readOnly NixOS option, that value shows
up in the options overview and can be re-used in other parts of NixOS
config.
2025-05-12 09:51:17 +02:00
Wolfgang Walther 9d78475ae9
nixos/pgbackrest: prevent storing secrets in store
While we're not (fully) supporting the related features, yet, we already
prevent accidental storage of secrets in the store. This will also avoid
breaking changes in the future, when those features are properly
supported.
2025-05-12 09:14:39 +02:00
Wolfgang Walther 82e519947f
nixos/pgbackrest: add SFTP support 2025-05-12 09:14:38 +02:00
Wolfgang Walther d5ddb6116f
nixos/pgbackrest: init module 2025-05-12 09:14:37 +02:00
Leona Maroni f79b568519
nixos/gitlab: add activeRecord key files (#405047) 2025-05-12 08:40:16 +02:00
Leona Maroni 3724b37770
nixos/archtika: remove module and package (#406192) 2025-05-12 08:09:23 +02:00
r-vdp b7fe0a1c0c
nixos/test/installer: make sure we can build the nixos udev rules 2025-05-12 00:37:03 +02:00
Fazzi e9fda96c29 nixos/nm-applet: fix service starting too early in some cases 2025-05-11 23:10:02 +01:00
r-vdp 51a43f8ad3
Reapply "nixos/udev: verify udev rules using udevadm"
This reverts commit 5d69558f0d.
2025-05-11 22:55:09 +02:00
provokateurin dfb7f45bb8
nixos/nextcloud: Disable integrity check 2025-05-11 21:34:33 +02:00
Benjamin Sparks 31bdcff584 nixos/darling: drop 2025-05-11 21:02:37 +02:00
Patrick Steinhardt 8578bd1117 nixos/headscale: fix derp.auto_update_enabled option
The options part of "services.headscale.settings" get rendered directly
into a JSON file. As such, any declared values need to match the actual
config key that upstream uses or they are ineffective.

One such key is "derp.auto_update_enable", which controls whether or not
auto-updates for the DERP map are enabled. This key is misspellt though:
the config is called "derp.auto_update_enabled", and that has always
been the case since the config has been introduced in 57f46ded (Split
derp into its own config struct, 2021-10-22). Any unknown key is simply
ignored by Headscale, and as such the setting is ineffective.

Fix this by renaming the option.
2025-05-11 20:12:05 +02:00
nixpkgs-ci[bot] 24f25d9d29
Merge master into staging-next 2025-05-11 18:05:07 +00:00
K900 ca62c09828
nixos/kde-pim: include kcontacts for merkuro's widgets (#406220) 2025-05-11 20:00:31 +03:00
Fernando Rodrigues b6c615196e
nixos/kde-pim: include kcontacts for merkuro's widgets
When using Merkuro in Plasma 6, the 'Contacts' widget will automatically
be added to the default panel. Unfortunately, it does not work unless
`kdePackages.kcontacts` is also present in the environment. This adds
the dependency if Plasma 6 is also enabled alongside Merkuro.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-05-11 16:53:44 +00:00
Maximilian Bosch d2cce43a85
Merge: nixos/ssh: add the systemd-ssh-proxy include directive to the Host * block (#405967) 2025-05-11 17:36:54 +02:00
thiloho a847800945
nixos/archtika: remove module 2025-05-11 16:27:16 +02:00
nixpkgs-ci[bot] 9af3319f5f
Merge master into staging-next 2025-05-11 12:06:00 +00:00
Jonas Heinrich ce6e5f037a nixos/oncall: init 2025-05-11 13:30:01 +02:00
Jacek Galowicz 08ed87ccc6
nixos/test-driver: allow assigning other vsock number ranges (#405508) 2025-05-11 13:24:41 +02:00
Wolfgang Walther 797c149b3e
nixos/postgresql: improve local peer authentication with default map (#404315) 2025-05-11 10:09:00 +00:00
Patrick 7a564cf0cd
nixos/networkd-dispatcher: use writeShellApplication to ease use 2025-05-11 11:53:45 +02:00
Wolfgang Walther 3d29b7d3a2
nixos/postgresql: improve local peer authentication with default map
This allows to easily map allowed database roles to system users.
2025-05-11 10:24:21 +02:00
isabel 92d64400d5
nixos/anubis: Fix defaultOptions not applying user-defined settings (#398790) 2025-05-11 08:56:46 +01:00
nixpkgs-ci[bot] 673efed879
Merge master into staging-next 2025-05-11 00:17:35 +00:00
Martin Weinelt 9da9474d63
nixos/boot/tmp: introduce adaptive huge memory pages (#404514) 2025-05-11 01:23:32 +02:00
abysssol af8538fee6
nixos/ollama: Fix systemd service doesn't use AMD GPU (#405857) 2025-05-10 22:59:56 +00:00
Alyssa Ross 0af6d76cda
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	nixos/doc/manual/release-notes/rl-2505.section.md
2025-05-10 23:23:16 +02:00
Arne Keller 4d4f8628cd
nixos/libvirtd: Use preferred version of iptables (#228625) 2025-05-10 22:23:51 +02:00
r-vdp 57d91c535b
nixos/ssh: add the systemd-ssh-proxy include directive to the Host * block
Otherwise, then any Host or Match block in the extraConfig will absorb the include
2025-05-10 21:10:48 +02:00
Zhaofeng Li 13bb852869 nixos/libvirtd: Use preferred version of iptables 2025-05-10 12:49:47 -06:00
Seth Flynn 8e551be5f1
nixos/graphics: don't mark package options as internal 2025-05-10 14:36:08 -04:00
networkException 23468ad19f
nixos/nextcloud: use LoadCredential to read services.nextcloud.secretFile
This patch adds support for using systemd's LoadCredential
feature to read in a json file at a path defined in the
services.nextcloud.secretFile option.

This is a follow up to 2ce1e84103.
2025-05-10 20:36:01 +02:00
nixpkgs-ci[bot] 72306e012b
Merge master into staging-next 2025-05-10 18:04:20 +00:00
Florian Klink 180f5a2593
nixos/systemd-initrd: deprecate strip (#404512) 2025-05-10 19:11:16 +03:00
Jan Tojnar 9d37135613
Merge speechd: 0.11.5 -> 0.12.1 (#375043) 2025-05-10 15:53:32 +02:00
Gary Guo 7dd8c5b602 unifi8: drop
This was an alias to the unifi package, which has been updated to v9.
To avoid confusion, remove this alias.
2025-05-10 14:47:52 +01:00
Peter Kling 089fa2b542 speechd: use socket activation 2025-05-10 14:58:35 +02:00
nixpkgs-ci[bot] 72fcf7d5a6
Merge master into staging-next 2025-05-10 12:05:40 +00:00
a 1d483cbef1 Resolves #405846 2025-05-10 21:38:58 +12:00
Paul Haerle 36607ba6e6
installer/tools: fix grammatical error in docs (#388452) 2025-05-10 11:31:39 +02:00
Maximilian Bosch b8b86834b7
nixos/test-driver: move sshBackdoor cfg from test-instrumentation to driver
That way, we don't need to duplicate the sshBackdoor options on NixOS-level.

Suggested-by: Jacek Galowicz <jacek@galowicz.de>
2025-05-10 10:40:35 +02:00
Wolfgang Walther f934044282
nixos/hydra: avoid conflicts for local postgres ident map
The key change here is, that the match was on the hydra database only
previously, but is now limited to to the hydra role instead. This avoids
conflicts with rules that are created by other modules or downstream
users.

With this change, we can remove the additional "postgres postgres" line,
because the default pg_hba line will kick in again and allow the
postgres user access to the postgres role.

Renaming the map from hydra-users to hydra is for consistency, so that
all modules can define maps matching in name with the role they manage.

The change from ident to peer is just cosmetic, ident is only used for
TCP connections and falls back to peer anyway.
2025-05-10 10:32:47 +02:00
Maximilian Bosch 12c544e008
nixos/testing: improve wording of vsockOffset description
Co-authored-by: Jacek Galowicz <jacek@galowicz.de>
2025-05-10 10:28:44 +02:00
nixpkgs-ci[bot] 4d19b24788
Merge master into staging-next 2025-05-10 06:04:47 +00:00
lassulus fb297f0be8
movim: 0.30 → 0.30.1; {movim,nixos.movim}: mysql → mariadb (#401596) 2025-05-10 07:58:20 +02:00
nixpkgs-ci[bot] ec6cecf985
Merge master into staging-next 2025-05-10 00:15:43 +00:00
Peder Bergebakken Sundt f13181e910
waagent: 2.12.0.4 -> 2.13.1.1 (#404876) 2025-05-10 00:08:00 +02:00
K900 5d69558f0d
Revert "nixos/udev: verify udev rules using udevadm" 2025-05-10 00:50:36 +03:00
Gabriel Smith 710e189c6e nixos/ups: run upsmon as non-root user "nutmon" by default
NUT documentation strongly suggests running `upsmon` as a non-root user
with very limited permissions. This includes only read access to
`upsmon.conf`.

Previously the `RUN_AS_USER` setting could be overwritten with
`mkForce`, but this left the system with technically incorrect
permissions on `upsmon.conf` that would prevent reloading. This patch
provides a way to change the user that `upsmon` runs as while
maintaining correct permissions on `upsmon.conf`.

Fixes #318582
2025-05-09 23:11:33 +02:00
Paul Haerle 772ee19537
installer: fix broken search suggestion in default config (#378797) 2025-05-09 20:35:51 +02:00
Marcel e03123d508
nixos/minecraft-server: update outdated links
The minecraft wiki moved to <https://minecraft.wiki>

https://www.reddit.com/r/Minecraft/comments/16r3y8x/the_minecraft_wiki_has_moved_from_fandom_to/
2025-05-09 14:09:50 +02:00
nixpkgs-ci[bot] d0bd8b838a
Merge master into staging-next 2025-05-09 12:06:12 +00:00
Arnout Engelen 1a5f51a754
treewide: possibly inactive maintainer ericsagnes (#399433) 2025-05-09 13:51:19 +02:00
Leona Maroni 18ef62172e
nixos/udev: verify udev rules using udevadm (#404323) 2025-05-09 13:03:30 +02:00
Arnout Engelen eb9ce0eed3
treewide: remove inactive maintainer ericsagnes 2025-05-09 12:03:09 +02:00
Maximilian Bosch a9adfc631a
nixos/test-driver: allow assigning other vsock number ranges
I'm a little annoyed at myself that I only realized this _after_ #392030
got merged. But I realized that if something else is using AF_VSOCK or
you simply have another interactive test running (e.g. by another user
on a larger builder), starting up VMs in the driver fails with

    qemu-system-x86_64: -device vhost-vsock-pci,guest-cid=3: vhost-vsock: unable to set guest cid: Address already in use

Multi-user setups are broken anyways because you usually don't have
permissions to remove the VM state from another user and thus starting
the driver fails with

    PermissionError: [Errno 13] Permission denied: PosixPath('/tmp/vm-state-machine')

but this is something you can work around at least.

I was considering to generate random offsets, but that's not feasible
given we need to know the numbers at eval time to inject them into the
QEMU args. Also, while we could do this via the test-driver, we should
also probe if the vsock numbers are unused making the code even more
complex for a use-case I consider rather uncommon.

Hence the solution is to do

    sshBackdoor.vsockOffset = 23542;

when encountering conflicts.
2025-05-09 11:54:00 +02:00
fleaz 8638793548 nixos/gitlab-runner: Add dockerPullPolicy option 2025-05-09 09:34:00 +02:00
Maximilian Bosch 7aa84359d4
Merge: nixos/postgresql: remove recoveryConfig option (#405186) 2025-05-09 09:28:23 +02:00
nixpkgs-ci[bot] 9f2b0a6818
Merge master into staging-next 2025-05-09 06:05:54 +00:00
Jacek Galowicz 8b3baa1402
nixos/test-driver: add backdoor based on systemd-ssh-proxy & AF_VSOCK (#392030) 2025-05-09 08:03:55 +02:00
sudoforge 8aa7a07653
nixos/iwd: move General.UseDefaultInterface to DriverQuirks.DefaultInterface
`General.UseDefaultInterface` was deprecated last year, with a
recommendation to move to `DriverQuirks.DefaultInterface` [0] [1] [2].

[0]: https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=5c7777ff0fbcdee3c5d3a3cf6b1f375f2e820644
[1]: https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=d223f49fbc622e5b2f270711619ecbd542bed12e
[2]: https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=a27b7823df12c5d185b39aa7777c546843c1c96f
2025-05-08 21:35:40 -07:00
Colin 62cab5dbe8
pkgs/buffybox: 3.2.0-unstable-2025-03-16 -> 3.3.0-unstable-2025-05-06 (#403179) 2025-05-09 02:04:39 +00:00
nixpkgs-ci[bot] 116f782c56
Merge master into staging-next 2025-05-09 00:16:24 +00:00
Martin Weinelt a74a23885d
nixos/frigate: create model cache dir
In 0.15.1 frigate has a logic error that makes it not ensure the model
cache dir exists before using it.

A workaround has been committed for newer versions, so we can drop this
on the next release.

Fixes: #402813
2025-05-09 02:01:53 +02:00
Gerg-L 98313e2b81
nixos/systemd-initrd: deprecate strip
It only saved ~1MiB of initramfs size, but caused a few issues
like unloadable kernel modules.
2025-05-08 19:08:14 -04:00
hustlerone 90ff6dc49e nixos/unl0kr: fix touchpads 2025-05-09 00:29:43 +02:00
K900 c50e195272
grafana: 11.6.0+security-01 -> 12.0.0 (#404897) 2025-05-09 00:08:35 +03:00
isabel d0d992d748
nixos/regreet: use proper user in tmpfiles (#284722) 2025-05-08 20:31:42 +01:00
Alex Martens fae4917f2f
nixos/homepage-dashboard: harden service (#377886) 2025-05-08 20:28:08 +01:00
r-vdp 1278d56d71
nixos/udev: verify all udev rules using udevadm 2025-05-08 20:34:26 +02:00
nixpkgs-ci[bot] 7b793f256a
Merge master into staging-next 2025-05-08 18:05:13 +00:00
Jan Tojnar ad7da739c5 nixos/gnome: Allow removal of default fonts with environment.gnome.excludePackages
People are particular about fonts that they have installed on their systems.
2025-05-08 19:28:27 +02:00
Jan Tojnar b794b3eedb nixos/gnome: Update default fonts
GNOME 48 switched to new Inter and Iosevka based Adwaita fonts:
067cb4b155
https://blogs.gnome.org/monster/introducing-adwaita-fonts/

The default fonts were last changed to Cantarell and Source Code Pro in GNOME 3.32:
965062de47

Source Sans was added alongside them in c99a666aac
but it does not seem to be needed nowadays.
The only relevant package mentioning it according is GNOME Recipes:
https://codesearch.debian.net/search?q=Source+Sans+-pkg%3Atexlive+-pkg%3Aopenjdk+-pkg%3Abootswatch+-pkg%3Aqt%28%5Cd-%29%3Fwebengine+-pkg%3Afirefox+-pkg%3Ar-cran+-pkg%3Ataskflow+-pkg%3Afonts-adobe-sourcesans+-path%3Asvg%24+-path%3A%2Fdoc%2F+-path%3A%2Fdocs%2F&literal=1

DejaVu fonts are meant as a generic fallback but they are already pulled in by `fonts.enableDefaultPackages` option.
2025-05-08 19:28:27 +02:00
Jan Tojnar 5a60a1a922 nixos/gnome: Enable RTKit by default
Without this, Mutter will complain at startup:

    .gnome-shell-wr[1013]: Failed to make thread 'KMS thread' high priority scheduled: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.RealtimeKit1" does not exist

PipeWire, WirePlumber and xdg-desktop-portal-gnome complain about the missing service too.
2025-05-08 18:29:03 +02:00
Franz Pletz 2634ca8249
nixos/ntpd-rs: Handle configuring NTP pools (#403903) 2025-05-08 18:28:32 +02:00
Jan Tojnar 0b772ee034 nixos/gdm: Remove stray with pkgs.gnome;
It was unused – `gdm` is part of the outer scope.
2025-05-08 18:22:29 +02:00
isabel 4324b1e793
nixos/evremap: get rid of unecessary bash (#390855) 2025-05-08 17:04:52 +01:00
Pol Dellaiera aaf817bb5b
nixos/glance: allow specifying secret settings (#395551) 2025-05-08 13:58:03 +00:00
Izorkin 4ec6492b3b nixos/mastodon: add option elasticsearch.prefix 2025-05-08 14:48:52 +02:00
nixpkgs-ci[bot] e3f655d284
Merge master into staging-next 2025-05-08 12:06:26 +00:00
Wolfgang Walther 7d0363742c
nixos/postgresql: remove recoveryConfig option
Since v12, PostgreSQL doesn't support recovery.conf anymore and fails to
start up when this option is set:

  FATAL:  using recovery command file "recovery.conf" is not supported

This is documented at:

https://www.postgresql.org/docs/current/recovery-config.html
2025-05-08 12:16:25 +02:00
Johannes Kirschbauer 5ee93d2532
lib: refactor lib.attrsets.{mapAttrs', mapAttrsToList} and mapAttrs'' in the strongswan-swanctl module (#403581) 2025-05-08 09:42:40 +02:00
ccicnce113424 4551258940 lib: refactor lib.attrsets.{mapAttrs', mapAttrsToList} and mapAttrs'' in the strongswan-swanctl module
The new implementation of `mapAttrsToList` is simpler than the previous one, avoiding an extra string conversion. Benchmarking shows a slight performance improvement. See the discussion here: https://discourse.nixos.org/t/another-implementation-of-mapattrstolist

Additionally, I searched nixpkgs for expressions equivalent to the old `mapAttrsToList` and replaced them with direct calls to the new implementation.
2025-05-08 13:58:54 +08:00
Maximilian Bosch 77a41a7dd8
grafana: 11.6.0+security-01 -> 12.0.0
Closes #404580

ChangeLog: https://github.com/grafana/grafana/releases/tag/v12.0.0

A few changes were necessary here:

* the provision seems to be delayed now, so the `machine.succeed` broke
  because the result was tested before the provisioning was finished.
  Using `wait_until_succeeds` to solve this.

* Work around a problem that got unnoticed during #399404:
  the setup-hook is also run in the `goModules` derivation, but
  `offlineCache` is missing. As a result, the build breaks. I guess this
  was unnoticed because everyone had a goModules with the previous hash
  in their store.

Co-authored-by: Emily <git@emilylange.de>
2025-05-08 07:29:39 +02:00
nixpkgs-ci[bot] 58e670273a
Merge master into staging-next 2025-05-08 00:16:38 +00:00
Leona Maroni a95a530883
nixos/gitlab: add activeRecord key files
GitLab 17.11 started using rails activeRecord encryption for some values.
Introduce new key files. This is breaking for unstable/25.05.

Also add a test to prevent this from happening unnoticed in the future.

For the future there should also be an option to set multiple activeRecord
keys for rotation.
2025-05-07 22:17:02 +02:00
nixpkgs-ci[bot] 32fa0f61e2
Merge master into staging-next 2025-05-07 18:05:44 +00:00
Wolfgang Walther c8d2eca963
.editorconfig: move subfolder config into separate .editorconfig files
This avoids paths in the top-level file getting out-of-sync, because the
.editorconfig files would be moved together with the files they target.
2025-05-07 20:01:35 +02:00
Wolfgang Walther 6739a5d2bf
nixos/postgrest: make unix-socket accessible for other services (#404596) 2025-05-07 14:40:21 +00:00
liberodark 5fffaee9e9 oxidized: switch to tmpfiles 2025-05-07 16:03:33 +02:00
nixpkgs-ci[bot] f5f43e296c
Merge master into staging-next 2025-05-07 12:06:52 +00:00
Sandro ebfa5f86be
nixos/octoprint: add package option (#393772) 2025-05-07 12:51:44 +02:00
piegames a1848a66d8
nixos/stash: Fix regex in default value (#403279) 2025-05-07 12:45:34 +02:00
codgician 16a7d7e982
waagent: support AutoUpdate.UpdateToLatestVersion in module 2025-05-07 17:07:53 +08:00
Jan Tojnar 867832aa50 nixos/gnome: Rename core-utilities option to core-apps
To match the upstream BuildStream definition:
3968975eac
2025-05-07 02:08:50 +02:00
Jan Tojnar 4a1b162c16 nixos/gnome: Update core apps
https://blogs.gnome.org/mcatanzaro/2025/03/21/gnome-48-core-apps-update/

- Add Decibels 5d89ffdee4
  (It somewhat overlaps with GNOME Music but the latter remains for Music library.)
- Remove gnome-shell-extensions 490c573b1b
- Add Sysprof and D-Spy to developer tools.
2025-05-07 02:08:50 +02:00
Jan Tojnar eafaba2fc0 gdm: 48.beta → 48.0
https://gitlab.gnome.org/GNOME/gdm/-/compare/48.beta...48.0

8ecc5d6a49
introduces polkit rules, install them in the GDM module.

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2025-05-07 02:08:19 +02:00
Yt e3fa38df6b
lauti: rename from eintopf and update to 1.0.0 (#403263) 2025-05-06 16:24:25 -04:00
Paul Haerle 34c9f25081 nixos/transmission: use Type=notify for systemd service (#396630) 2025-05-06 18:02:48 +02:00
Bruno BELANYI e8f532dea2
nixos/mealie: add 'database.createLocally' (#403670) 2025-05-06 13:45:40 +01:00