Commit Graph

28496 Commits

Author SHA1 Message Date
Gabriel Arazas
d3e246f9fa
nixos/guix: fix systemd socket unit 2023-12-21 22:18:56 +08:00
Elian Doran
3c4ddf8284 nixos/mympd: init 2023-12-21 16:01:46 +02:00
Kerstin
98e9d68cc8
Merge pull request #275663 from Izorkin/update-mastodon-build
mastodon: remove tools from propagatedBuildInputs
2023-12-21 13:43:28 +01:00
Åsmund Østvold
aeeb655646 service buildkite-agent: make it possible add groups to agent users
Only one extra group was add. Some times you want the agents users to
be member of other groups like 'docker'. This change make this possible.

Co-authored-by: Florian Klink <flokli@flokli.de>
2023-12-21 12:49:48 +01:00
Thiago Kenji Okada
ad16ca96e6
Merge pull request #267261 from name-snrl/make-overriding-sway-package-easier
nixos/sway: refactoring of `package` option
2023-12-21 10:34:16 +00:00
Jörg Thalheim
3fcdbd3029
Merge pull request #275591 from Mic92/nix-direnv-nixos
nixos/nix-direnv: respect configured nix package
2023-12-21 11:18:08 +01:00
Jörg Thalheim
fd32059984 nixos/nix-direnv: respect configured nix package
Rebuilds should be reasonably fast since it's a shell script
and we don't end up with different versions of nix in the store.
2023-12-21 09:08:42 +01:00
Raghav Sood
7d97d9ebd1
Merge pull request #275439 from RaghavSood/nitter/guest-accounts
nitter: unstable-2023-10-31 -> unstable-2023-12-03 (guest accounts support)
2023-12-21 14:03:35 +08:00
Martin Weinelt
d12a0b7861
Merge pull request #275554 from SuperSandro2000/home-assistant-custom-components-fix-unlink
nixos/home-assistant: fix removing of uninstalled custom components
2023-12-20 21:15:26 +01:00
WilliButz
ac58b65cf5
Merge pull request #275112 from r-ryantm/auto-update/prometheus-nginx-exporter
prometheus-nginx-exporter: 0.11.0 -> 1.0.0
2023-12-20 20:27:28 +01:00
Maximilian Bosch
571f06ad0d
Merge pull request #270260 from SuperSandro2000/gitea-camo-hmac
nixos/gitea: add hmacKey support
2023-12-20 19:02:20 +01:00
Franz Pletz
faff9de754
nixos/prometheus/nginx-exporter: fix args for 1.0 2023-12-20 18:23:29 +01:00
Franz Pletz
54a4f96cfc
Merge pull request #274570 from Luflosi/kubo-more-RFC42
nixos/kubo: convert two settings to RFC42-style settings
2023-12-20 16:24:50 +01:00
Izorkin
8a0a8c7a04
nixos/mastodon: replace ffmpeg to ffmpeg-headless 2023-12-20 18:01:55 +03:00
Maciej Krüger
ff680a4c39
Merge pull request #207717 from jpathy/patch-2 2023-12-20 13:52:03 +01:00
Peder Bergebakken Sundt
6b25f0686e
Merge pull request #253147 from SuperSandro2000/ssh-forwardx11
nixos/ssh: add variant to not set ForwardX11
2023-12-20 12:42:47 +01:00
Florian Klink
c28f238f5a
Merge pull request #272946 from benaryorg/resolved_no_fallback
nixos/resolved: Allow upstream fallback override
2023-12-20 12:55:44 +02:00
Sandro Jäckel
d4c622ec5f
nixos/home-assistant: fix removing of uninstalled custom components
Before components was not an array and the first loop did never loop
through all entries but through the entire output of find without
splitting by new line.

Tested by copying the preStart script out of the nix store, doing the
change and observing that now the custom-components directory is indeed
being cleaned up after removing a custom component.
2023-12-20 05:00:05 +01:00
Kerstin
d2d0044221
Merge pull request #274556 from networkException/mastodon-init-db-psql-escaping
nixos/mastodon: properly escape arguments to psql in init-db script
2023-12-19 22:28:08 +01:00
Ilan Joselevich
6f885c4e74
Merge pull request #275383 from Kranzes/nextcloud
nixos/nextcloud: serve flac and ogg files
2023-12-19 23:19:06 +02:00
networkException
4dd61b6e68
nixos/mastodon: properly escape arguments to psql in init-db script 2023-12-19 21:02:13 +01:00
Sandro Jäckel
88946fe4d8
nixos/ssh: add variant to not set ForwardX11
ssh_config allows a setting to only be set once and if more complex
conditions are used than having ForwardX11 already defined can be a
problem.
2023-12-19 19:35:26 +01:00
Florian Klink
b6cad0fd94
Merge pull request #274220 from flokli/waagent-cleanups
waagent: cleanups
2023-12-19 19:19:40 +02:00
Raghav Sood
2595f503cd
nitter: add guest account support to systemd service 2023-12-20 00:01:20 +08:00
Pol Dellaiera
1a57f50d95
Revert "code-server: drop"
This reverts commit 72911a99d3.
2023-12-19 15:40:57 +01:00
K900
e42d80fa6d
Merge pull request #274818 from eyJhb/moonraker-new-config-filemanager
moonraker: add setting file_manager.check_klipper_config_path
2023-12-19 17:36:54 +03:00
eyjhb
0fc323eeef
moonraker: disable check_klipper_config if klipper is immutable 2023-12-19 15:36:01 +01:00
Adam C. Stephens
6b43e4b0bc
Merge pull request #260128 from adamcstephens/lxd/no-restart-agent
nixos/lxd-agent: prevent restarting on change
2023-12-19 08:41:21 -05:00
Peder Bergebakken Sundt
1a647a10b8
Merge pull request #268806 from Izorkin/init-angie
angie: init at 1.4.0
2023-12-19 13:51:51 +01:00
Yonghan Ching 庄勇翰
5fff7f4078 Update zerotierone.nix per input
Nothing will happen now when `cfg.localConf == null`
2023-12-19 12:34:03 +00:00
Yonghan Ching 庄勇翰
7b83a839dc Fix bash prestart script syntax error 2023-12-19 12:34:03 +00:00
Yonghan Ching 庄勇翰
996bbe5bd9 delete trailing whitespace at row 70 2023-12-19 12:34:03 +00:00
Yonghan Ching 庄勇翰
8af401d3cf Update zerotierone.nix per input
Changed `services.zerotierone.localConf` default value to `null` and type to `nullOr attrs` per input.

Changed `systemd` preStart script to delete
 `/var/lib/zerotier-one/local.conf` when it is a symlink, and rename when it is an actual file, then only create a symlink to the nix store when `services.zerotierone.localConf` is not null.
2023-12-19 12:34:03 +00:00
Yonghan Ching 庄勇翰
b233faab82 Update zerotierone.nix 2023-12-19 12:34:03 +00:00
Yonghan Ching 庄勇翰
36791bab6a Update zerotierone.nix 2023-12-19 12:34:03 +00:00
Yonghan Ching 庄勇翰
0b357293e8 Update zerotierone.nix 2023-12-19 12:34:03 +00:00
Yonghan Ching 庄勇翰
097f2b6737 Update zerotierone.nix
Added option to write zerotier's local.conf in nix.
2023-12-19 12:34:03 +00:00
Ilan Joselevich
8bbbb228b4
nixos/nextcloud: serve flac and ogg files
Since v28 Nextcloud Talk supports serving files with with .ogg/.flac extension
2023-12-19 13:07:19 +02:00
r-vdp
c4b3e4f5f8 dbus-broker: avoid errors when reloading when /tmp got remounted
When reloading the dbus-broker service (e.g. when switching to a new generation),
the reload fails when /tmp got remounted after the service had been started.
Since the dbus-broker service starts early, and does not have default dependencies,
this situation does occur in practice.
This change makes sure that if there are mount units for /tmp, dbus-broker gets
ordered after them.

See also https://github.com/systemd/systemd/issues/28515
2023-12-19 10:34:41 +01:00
Florian Klink
150f83621c
Merge pull request #275340 from flokli/initrd-makefs-unconditionally
nixos/systemd/initrd: add systemd-makefs unconditionally
2023-12-19 11:08:34 +02:00
Thomas Churchman
972626f142 mopidy: make service wait until system is online 2023-12-19 08:34:50 +01:00
Florian Klink
5a57cde110 nixos/systemd/initrd: add systemd-makefs unconditionally
As discussed in
https://github.com/NixOS/nixpkgs/issues/274310#issuecomment-1861842634,
the size increase is negligible, and this might be triggered via fstab
options or the cmdline too.

systemd-growfs is an online operation, so it's taken care of in stage 2.

Fixes https://github.com/NixOS/nixpkgs/issues/274310.
2023-12-19 08:38:03 +02:00
Will Fancher
4aeb82afc8
Merge pull request #275105 from SuperSandro2000/initrd-crypttab
nixos/luksroot: add final newline to /etc/crypttab
2023-12-18 19:00:53 -05:00
Sandro Jäckel
1ebb7d7bba
nixos/gitea: add hmacKey support 2023-12-18 23:44:24 +01:00
Jonathan Ringer
432b9bd620 nixos/firmware: Omit removed rtl8723-bs package 2023-12-18 10:49:40 -08:00
Nick Cao
bdd50be980
Merge pull request #273876 from timothyklim/master
nvidia_x11.dc_535: 535.129.03
2023-12-18 12:50:00 -05:00
WilliButz
92ad5c907c
Merge pull request #274543 from fugidev/sabnzbd-exporter-loadcredential
nixos/prometheus-sabnzbd-exporter: use LoadCredential for apiKeyFile
2023-12-18 15:09:35 +01:00
Peder Bergebakken Sundt
45052e5e52
Merge pull request #273397 from ipetkov/nut
nixos/ups: fix shutting down the UPS from primary monitors
2023-12-18 15:06:22 +01:00
Fugi
6430b7a181
nixos/prometheus-sabnzbd-exporter: use LoadCredential for apiKeyFile 2023-12-18 14:48:49 +01:00
Florian Klink
f1c8d0709b nixos/waagent: provide waagent udev rules in initrd
This should make /dev/disk/azure appear in-initrd too.
2023-12-18 13:18:11 +02:00
Florian Klink
276939e0a1 nixos/waagent: move runtime dependencies to systemd service
The udev rules shell out to chmod, cut and readlink, which are available
for udev rules (see https://github.com/NixOS/nixpkgs/pull/274236).
2023-12-18 13:18:11 +02:00
Maximilian Bosch
1a9fe45b53
Merge pull request #275053 from danth/nextcloud-mjs
nixos/nextcloud: set correct MIME type for .mjs files
2023-12-18 11:07:22 +01:00
Ryan Lahfa
ed66c68205
Merge pull request #275028 from pacien/zfs-zed-sendmail 2023-12-18 10:32:58 +01:00
Ryan Lahfa
17c3ebdba5
Merge pull request #265857 from 999eagle/feat/invidious-scale
nixos/invidious: cleanup, allow for easy scaling and load balancing, add http3-ytproxy
2023-12-18 10:17:09 +01:00
Sandro Jäckel
8c58a7cb4b
nixos/luksroot: add final newline to /etc/crypttab 2023-12-18 02:16:08 +01:00
Peder Bergebakken Sundt
0f92e92565
Merge pull request #263661 from SuperSandro2000/pulseaudio-no-avahi
nixos/pulseaudio: don't create config file or enable avahi when pulse…
2023-12-18 00:10:29 +01:00
Peder Bergebakken Sundt
80beaf2b29
Merge pull request #245327 from JohnAZoidberg/keyd-2.4.3
keyd: 2.4.2 -> 2.4.3
2023-12-17 23:41:06 +01:00
Izorkin
86efccfa45
angie: init at 1.4.0 2023-12-17 22:43:13 +03:00
Daniel Thwaites
292c74c7a9
nixos/nextcloud: set correct MIME type for .mjs files 2023-12-17 19:17:10 +00:00
Sophie Tauchert
24e561fabc
nixos/invidious: change default database user to invidious
This makes sure we don't need any workarounds for running Invidious with a local
PostgreSQL database.
Changing the default user should be fine as the new init script for PostgreSQL automatically
creates the new user and changes the existing database's owner to the new user. The old user
will still linger and must be removed manually.
See also: https://github.com/NixOS/nixpkgs/pull/266270
2023-12-17 19:48:15 +01:00
Sophie Tauchert
ac5c1886fd
nixos/invidious: add option to configure http3-ytproxy for invidious 2023-12-17 19:48:03 +01:00
Sophie Tauchert
d41706bae2
nixos/invidious: bind to 127.0.0.1 instead of 0.0.0.0 if nginx is used 2023-12-17 19:48:03 +01:00
Sophie Tauchert
45bd4b1159
nixos/invidious: add option to run more invidious instances 2023-12-17 19:48:02 +01:00
Sophie Tauchert
4a7faeaff3
nixos/invidious: remove obsolete database maintenance service
See the note on https://docs.invidious.io/db-maintenance/. Manual maintenance
is no longer required.
2023-12-17 19:48:02 +01:00
jpathy
0225a786e5
nixos/networkd: allow IPv6LinkLocalAddressGenerationMode in networkConfig
Fixes: #199407 .
2023-12-17 19:39:59 +01:00
pacien
cf6d89525f nixos/zed: use global sendmail if configured
This simplifies the setup to receive emails from the ZFS Event Daemon
by relying on the sendmail wrapper defined by other modules such as
msmtp or Postfix.

This is more similar to how other modules like smartd deal with email
configuration.

The user is no longer required to define and rebuild their own ZFS
package to add email support.

GitHub: closes https://github.com/NixOS/nixpkgs/issues/132464
2023-12-17 18:16:08 +01:00
Pierre Bourdon
91a00709ae
Merge pull request #273219 from Lurkki14/tuxclocker-master
tuxclocker: init at 1.4.0
2023-12-17 17:30:18 +01:00
Jussi Kuokkanen
60cb6ee94f nixos/tuxclocker: init module 2023-12-17 18:16:45 +02:00
K900
b3d1ef8dde
Merge pull request #272534 from jopejoe1/pipewire
nixos/pipewire: add pipewire config
2023-12-17 14:03:11 +03:00
jopejoe1
8ba76f8dd4 nixos/pipewire: add pipewire config 2023-12-17 13:38:32 +03:00
Peder Bergebakken Sundt
934c255ae4
Merge pull request #268975 from nbraud/pkgs/certmgr
nixos/kubernetes: certmgr-selfsigned is now an alias
2023-12-17 03:37:45 +01:00
Mario Rodas
46b52eea7a
Merge pull request #268156 from reedriley/starship-env
nixos/starship: change module logic that sets STARSHIP_CONFIG to not override user config
2023-12-16 18:46:06 -05:00
Peder Bergebakken Sundt
210dd845de
Merge pull request #274808 from pbsds/node-red-package-option
nixos/node-red: fix `cfg.package` default value documentation
2023-12-16 23:20:07 +01:00
Thiago Kenji Okada
460515843c
Merge pull request #269662 from atorres1985-contrib/quick
remove jammerful
2023-12-16 21:11:28 +00:00
Peder Bergebakken Sundt
77e3850db0 nixos/node-red: fix cfg.package default value documentation 2023-12-16 21:03:18 +01:00
Lin Jian
174fc675c8
Merge pull request #273313 from Enzime/add/mosh-firewall-option
nixos/mosh: add `programs.mosh.openFirewall`
2023-12-16 12:24:42 -06:00
Pol Dellaiera
8da07755de
nixos/winbox: add missing environment.systemPackages 2023-12-16 10:09:59 +01:00
K900
be1866d698
Merge pull request #270958 from MinerSebas/plasma-samba
nixos/plasma5: Dont add samba a second time to `environment.systemPackages`
2023-12-16 09:15:47 +03:00
Michael Hoang
5a211498ed nixos/mosh: add programs.mosh.openFirewall 2023-12-16 12:57:20 +11:00
Michael Hoang
f9be47e08c nixos/mosh: use mkEnableOption 2023-12-16 12:57:03 +11:00
Luflosi
45c4fb240a
nixos/kubo: convert two settings to RFC42-style settings
Convert the `ipfsMountDir` and `ipnsMountDir` settings to RFC42-style settings.
I don't know why I didn't already do this in a255c43f44, I guess I just missed it.
2023-12-16 01:01:56 +01:00
Pol Dellaiera
f6608ef020
Merge pull request #274519 from drupol/winbox-module
nixos/winbox: init
2023-12-16 00:51:37 +01:00
Luflosi
d4fcb44dcc
nixos/kubo: fix potential panic on startup
This fixes a panic of the kubo daemon which could occur under certain conditions when the daemon was starting.
It was caused by the `ipfs.service` unit not depending on the `ipfs-api.socket` and `ipfs-gateway.socket` units with `Wants=`. This allows the `ipfs.service` to be started manually or by `nixos-rebuild` without the sockets being set up before that. When that happens, the daemon won't know about these sockets and will only use what is set in `services.kubo.settings.Addresses.Gateway` and `services.kubo.settings.Addresses.API`. By default the `API` is an empty list in NixOS though. The daemon doesn't like this at all and panics on startup, see https://github.com/ipfs/kubo/issues/10056.
With this commit, starting `ipfs.service` will first set up the two sockets before starting the actual service.
Adding the `Sockets=` option implicitly adds a `Wants=` for the sockets and this is exactly what we need. See https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Implicit%20Dependencies . This can be checked with `systemctl show ipfs.service`.

This should probably be upstreamed to the unit file in the Kubo repo.

The problem can be reproduced in the following way:
- Add `services.kubo.enable = true` to `/etc/nixos/configuration.nix`
- `sudo nixos-rebuild switch` (this may already fail, not sure why it's not deterministic for me)
- `sudo systemctl stop ipfs-api.socket`
- `sudo systemctl stop ipfs-gateway.socket`
- `sudo systemctl stop ipfs.service`
- `sudo systemctl start ipfs.service`

Fixes #248447.
2023-12-15 23:36:08 +01:00
Franz Pletz
cbb38bf7b7
Merge pull request #264869 from h7x4/nixos-module-cleanup-quicktun
nixos/quicktun: clean up module, add tests
2023-12-15 20:14:39 +01:00
Pol Dellaiera
700959c8ee
nixos/winbox: init 2023-12-15 19:48:49 +01:00
Nick Cao
63d30a7bff
Merge pull request #274291 from wahjava/fix-drbd-service
drbd: fix path to drbdadm
2023-12-15 09:58:55 -05:00
benaryorg
57846d0cae
nixos/resolved: Allow upstream fallback override
The previous code did not apply any changes to the upstream defaults on being presented with an empty list.
This changes the code to use the above behaviour on a `null` value while an empty list is passed through as normal which yields a systemd configuration line with empty value which resets it to an empty value.

Signed-off-by: benaryorg <binary@benary.org>
2023-12-15 13:07:05 +00:00
Martin Weinelt
9f6a054517
nixos/kea: preserve shared runtime directory
When one service gets restarted it may otherwise remove the shared
runtime directory for all kea services.

The idea for this solution was provided by Jeffrey C. Ollie in
https://github.com/NixOS/nixpkgs/issues/265826#issuecomment-1841424019.

Closes: #265826
2023-12-15 13:56:08 +01:00
Martin Weinelt
cd6ccb1737 Revert "kea: use separate runtime directories for each service"
This reverts commit 413011ddf4.

Using separate lockfile directories prevents the different kea daemons
from using the interprocess sync lockfile.

Keeping the runtime directory around might be the better approach.
2023-12-15 13:51:19 +01:00
Florian Klink
f4de47d49e
Merge pull request #274264 from flokli/udev-rules-allow-bin-sh
nixos/udev: allow /bin/sh in udev rules
2023-12-15 13:57:35 +02:00
timothy
6e4d90f0b0 nvidia_x11.dc_535: 535.129.03 2023-12-15 18:20:42 +07:00
K900
1950eec4aa nixos/ldso: remove string context from linker soname
Unbreaks installer tests that otherwise start depending on i686-glibc
2023-12-15 12:39:26 +03:00
Maximilian Bosch
28089f8874
Merge pull request #273858 from dotlambda/nextcloud28-init
nextcloud28: init at 28.0.0, nextcloud27: 27.1.4 -> 27.1.5, nextcloud26: 26.0.9 -> 26.0.10
2023-12-15 08:14:15 +01:00
Lin Jian
73b3a1450f
Merge pull request #274110 from networkException/sysctl-net.core.wmem_max
nixos/{sysctl,caddy}: improvements for net.core.wmem_max
2023-12-14 23:14:17 -06:00
networkException
968905ab76
nixos/caddy: also increase socket send buffer size as recommended by upstream
this patch adjusts the `boot.kernel.sysctl."net.core.wmem_max"` to match the
value suggested in the quic-go wiki, just as `"net.core.wmem_max"`.

see fdfdc5df21
see https://github.com/quic-go/quic-go/issues/3923
2023-12-15 04:43:57 +01:00
networkException
439350753e
nixos/sysctl: use highest value on conflict for net.core.wmem_max
we previously defined a custom type for `boot.kernel.sysctl."net.core.rmem_max"`
to resolve to the highest value set. this patch adds the same behavior to
`"net.core.wmem_max"`.

as this changes the type from a string to an integer, which is a breaking
change this patch also includes a release note and updates the transmission
module to use a number for `wmem_max`.
2023-12-15 04:43:57 +01:00
Weijia Wang
7e0d6f6d6d
Merge pull request #274315 from emilylange/fix-nixos-node-red
nixos/node-red: fix `cfg.package` default value
2023-12-15 02:13:01 +01:00
Thomas Gerbet
a9da4c2260
Merge pull request #257504 from SuperSandro2000/postgres-doc
nixos/postgresql: point doc link to current like all others
2023-12-15 00:43:13 +01:00
emilylange
22bbd1834e
nixos/node-red: fix cfg.package default value
This fixes the following eval error:

```
error: nodePackages.node-red cannot be found in pkgs
```

when having `services.node-red.enable = true;` without specifying
`services.node-red.package`, just like the nixos VM test.

Follow-up of f509382c11, which attempted
to fix this as well.

Breakage introduced in 0a37316d6c.
2023-12-14 23:19:25 +01:00
Ashish SHUKLA
086604334a drbd: fix path to drbdadm
props: @cody4k for the fix

Fixes #268172
2023-12-15 01:35:02 +05:30