0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 00:20:32 +03:00
Commit graph

4300 commits

Author SHA1 Message Date
piegames
f6ea57fd16 treewide: Fix incorrect string indentations
(cherry picked from commit dd7d5339f7)
2025-01-11 17:29:21 +01:00
piegames
772006e8c0 treewide: Fix incorrect string escapes
(cherry picked from commit 603733851b)
2025-01-11 17:29:20 +01:00
Bjørn Forsman
3f0a8ac25f nixos/dhcpcd: fix updating resolv.conf when using systemd-resolved
Fix the regression between NixOS 24.05 and 24.11 where using dhcpcd
(e.g. networking.useDHCP) and systemd-resolved
(services.resolved.enable) result in no "search" entry getting added to
/etc/resolv.conf, and dhcpcd logging the following error:

  $ systemctl status dhcpcd
  [...] dhcpcd[2896]: Failed to set DNS configuration: Interactive authentication required.

Fix it by adding a polkit rule that gives the required permissions to
the 'dhcpcd' user to manipulate resolved. The rule was made by using
polkit logging and allowing each action.id until the above error went
away, and /etc/resolv.conf got the correct search entry.

(cherry picked from commit cc5645c6e0)
2025-01-06 22:54:43 +01:00
Patrick
af76d3d569 nixos/netbird: fix state directory mode
(cherry picked from commit 8e44bd9c66)
2025-01-06 06:02:14 +00:00
Martin Weinelt
c940a51ecc nixos/coturn: restore logging functionality
Due to undetermined hardening changes logging to syslog does not work
anymore, but we don't need it. We're running in a systemd unit so allow
logging to stdout instead.

(cherry picked from commit 269d596970)
2025-01-01 12:39:43 +00:00
Christian Kögler
cf442b8946
[Backport release-24.11] nixos/ntpd: fix permissions error when creating drift file (#367479) 2024-12-31 15:26:42 +01:00
Sebastian Sinnlos
0f711df147 nixos/ddclient: update defaults for usev4/6
Set to future upstream [default](5b104ad116) as current defaults are broken because the
endpoints of dyndns.com only serve http. See [ddclient issue 597](https://github.com/ddclient/ddclient/issues/597)

(cherry picked from commit 7a485e4780)
2024-12-27 08:56:05 +01:00
Alex Martens
377e15d686 nixos/ddclient: fix missing iproute2
When obtaining the IP address from an interface iproute2 is missing:

"Unable to obtain information for 'bond-wan' -- missing ip or ifconfig command"

The prefix check to include iproute2 is incorrect for "usev4" and "usev6".

Currently the NixOS module checks for the "if" prefix.  This prefix is
not valid with "usev4" and "usev6":

"Invalid Value for keyword 'usev4' = 'if'"

"ifv4" must be used with "usev4", and "ifv6" with "usev6".

I updated the nixos module to check for the correct prefix with "usev4"
and "usev6", and include iproute2 as necessary.

(cherry picked from commit 403dfb7c93)
2024-12-27 08:54:50 +01:00
Stefan Frijters
dbb71e266a nixos/ntpd: fix permissions error when creating drift file
This fixes "frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied".

Creating a directory via StateDirectory makes that directory /var/lib/ntp owned by root:root.
However, when running ntpd we change to user ntp (see ntpFlags), so the process cannot
actually use that directory.

Actually creating a home directory for the user at that location solves that problem.

(cherry picked from commit 31942f20f4)
2024-12-22 22:21:04 +00:00
lilly
4672d4c94c nixos/networkmanager: add nm-file-secret-agent options
nm-file-secret agent is a small agent that can supply secrets of
connection profiles to NetworkManager by reading the contents of
preconfigured files.
These files could be supplied e.g. by nixos-sops or any other mechanism.

(cherry picked from commit 24e0db1ba9)
2024-12-20 14:35:51 +00:00
Aaron Ecay
61d89818ce fix dhcpcd when ipv6 is disabled
(cherry picked from commit ebbdb61935)
2024-12-16 16:56:29 +00:00
Silvan Mosberger
d9d87c5196 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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 0128fbb0a5
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:29:24 +01:00
nix-backports[bot]
4dbea6e2d4
[Backport release-24.11] nixos/seafile: fix systemd option capitalization for RandomizedDelaySec (#363366) 2024-12-08 16:37:53 -05:00
Andrew Childs
837a4c79f4 nixos/hostapd: remove HT40- from default capabilities
The current default configuration, automatic channel selection with
the HT40- capability, is explicitly disallowed by an assertion in this
module.

This is a result of recent change to default to automatic channel
selection in 1047f0a6bf.

(cherry picked from commit 8a97d662dd)
2024-12-07 06:57:24 +00:00
Martin Weinelt
fcd0b7f91e
[Backport release-24.11] nixos/knot: add missing CLIs to wrapper (#361436) 2024-12-04 01:34:12 +01:00
Franz Pletz
5a1659c0ef nixos/fireqos: modernize
(cherry picked from commit c91e47f589)
2024-12-03 20:13:03 +00:00
budimanjojo
243c725b8c nixos/fireqos: fix service not being enabled
Signed-off-by: budimanjojo <budimanjojo@gmail.com>
(cherry picked from commit 7ed1bb9467)
2024-12-03 20:13:03 +00:00
Molly Miller
9fd387bebb nixos/frr: make runtime directory world-readable
FRR intends for non-root users to connect to the VTY sockets if they
are members of the frrvty group, however this is not possible if
non-root/non-frr users cannot access the runtime directory. The
sockets used by the FRR daemons for internal IPC are also created in
the runtime directory, however these are created with appropriately
restrictive permissions to prevent interference.

(cherry picked from commit f014b0d415)
2024-12-03 15:35:31 +00:00
Alexander Sieg
1945b44dab nixos/knot: add missing CLIs to wrapper
(cherry picked from commit 46402be060)
2024-12-03 12:40:35 +00:00
Alexander Sieg
d81ce81773
[Backport release-24.11] nixos/shairport-sync: restart the systemd service on failure (#361050) 2024-12-02 23:18:42 +01:00
Aadniz
4f14c4fb60 nixos/searxng: limiter.toml reference moved
fd814aac86 (diff-c33cdfa4503c019bc49259acad45fc0a895a127b20ae3ffefaa12b7c439d4aa2)
(cherry picked from commit 4b44081827)
2024-12-02 16:11:54 +00:00
bloominstrong
feca72e207 nixos/kea: fix settings example
As of 2.6.0 subnet-ids need to be provided in the setitngs, adding that to the dhcp{4,6}.settings example

(cherry picked from commit 798c3d20d3)
2024-12-02 13:13:41 +00:00
Jordan Williams
bd6a9830ea nixos/shairport-sync: restart the systemd service on failure
This ensures shairport-sync is running, even after crashes.

(cherry picked from commit dde8ee1179)
2024-12-02 10:52:55 +00:00
Yaroslav Bolyukin
2ef71cdcfa nixos/netbird: fix coturn configuration
(cherry picked from commit 4b8fee2274)
2024-12-01 21:12:12 +00:00
Michele Guerini Rocco
c321e53fd9
[Backport release-24.11] nixos/hostapd: allow octothorpe characters in SAE password (#360811) 2024-12-01 18:53:48 +01:00
Jared Baur
950d2a9b55 nixos/hostapd: allow octothorpe characters in SAE password
The `saePasswordsFile` option mentions that lines beginning with `#` are
ignored, however the current regexp ignores all lines with `#` located
anywhere in the line. In order to better fit the documentation, the
regexp has been changed to only allow `#` at the beginning of the line,
with optional whitespace.

(cherry picked from commit 027e77778c)
2024-12-01 17:35:50 +00:00
PAEPCKE, Michael
193899c87e nixos/wg-access-server: bugfix dns.enabled (yaml)
(cherry picked from commit a58c8fee1e)
2024-11-27 17:05:31 +00:00
Nico Felbinger
5f82bf3982 nixos/suricata: add description fields for configuration
(cherry picked from commit 9e608d46a9)
2024-11-23 21:32:44 +01:00
TheRealGramdalf
c5f764a232 nixos/netbird: fix port conflict on metrics endpoint
(cherry picked from commit bfc160a84c)
2024-11-22 19:03:46 +00:00
Naïm Favier
65933c9eb9 nixos/libreswan: use environment.etc."ipsec.secrets".text
This is to ensure compatibility with the networkmanager module, which
uses the `text` option.

(cherry picked from commit b294762bb9)
2024-11-21 07:18:48 +00:00
Weijia Wang
e954f3e48e
[Backport release-24.11] python312Packages.magic-wormhole-mailbox-server: 0.4.1 -> 0.5.1 (#357210) 2024-11-20 14:04:11 +01:00
Weijia Wang
e90a55931b
[Backport release-24.11] globalprotect-openconnect: Reinstate v1 (#356229) 2024-11-19 21:57:53 +01:00
Martin Joerg
f46acb4670 python312Packages.magic-wormhole-mailbox-server: 0.4.1 -> 0.5.1
https://github.com/magic-wormhole/magic-wormhole-mailbox-server/compare/refs/tags/0.4.1...refs/tags/0.5.1
https://github.com/magic-wormhole/magic-wormhole-mailbox-server/blob/0.5.1/NEWS.md

Python 3.12 is now supported

(cherry picked from commit 0afba0d517)
2024-11-19 09:46:48 +00:00
jopejoe1
001f7f088e
[Backport release-24.11] nixos/shairport-sync: add package option (#356417) 2024-11-16 20:16:53 +01:00
Jordan Williams
ad01009efb nixos/shairport-sync: add package option
(cherry picked from commit 697fa78c9a)
2024-11-16 09:28:18 +00:00
Rahul Rameshbabu
420c85b7b8 globalprotect-openconnect: Reformat expressions using RFC style
The original work did not use the new nixfmt style.

Signed-off-by: Rahul Rameshbabu <sergeantsagara@protonmail.com>
(cherry picked from commit b6bac07973)
2024-11-15 17:26:29 +00:00
Rahul Rameshbabu
9c30b10d82 Revert "globalprotect-openconnect: remove deprecated 1.x package"
This reverts commit b08d6a664f.

Signed-off-by: Rahul Rameshbabu <sergeantsagara@protonmail.com>
(cherry picked from commit 8f2fa04fd9)
2024-11-15 17:26:28 +00:00
Justinas Stankevicius
487678fa97 nixos/teleport: add required utils to path
(cherry picked from commit 3fa182e7ec)
2024-11-15 15:38:03 +00:00
Franz Pletz
bb6d800c3a
iwd: update settings documentation (#352989) 2024-11-06 12:17:24 +01:00
Guilhem Saurel
71f467fc88 iwd: update settings documentation
The link https://iwd.wiki.kernel.org/networkconfigurationsettings is
currently broken, as it redirect to the 404
https://archive.kernel.org/oldwiki/iwd.wiki.kernel.org/networkconfigurationsettings ; the correct link is
https://archive.kernel.org/oldwiki/iwd.wiki.kernel.org/networkconfigurationsettings.html but it is marked as obsolete, and tell the user to read the iwd.network(5) man.

Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
2024-11-06 11:10:42 +01:00
Sandro
a633b5fb12
OpenVPN: don't fail to restart stopped units (#345993) 2024-11-06 01:16:43 +01:00
Yureka
959cb6b020 nixos/fastnetmon-advanced: set dbus implementation to dbus-broker
Fixes "Failed to restart gobgp.service: Transport endpoint is not connected"

Fixes the nixos test

Change-Id: I96fe6ce8e69ec3038b349d45a8046ed93333dddb
2024-10-31 01:50:34 +01:00
DCsunset
acda73926d nixos/murmur: support setting user and group for service 2024-10-30 08:21:48 +00:00
DCsunset
2f0c3c88cb nixos/murmur: support setting custom state directory 2024-10-30 08:21:48 +00:00
Aleksana
dbe33f99b7
nixos/soju: use message-store instead of deprecated log in config (#338650) 2024-10-29 17:37:21 +08:00
Aleksana
5fd2f5aac6
tailscaled: Add option to disable Taildrop (#346957) 2024-10-29 17:19:31 +08:00
Nico Felbinger
32d516c84d
nixos/radicale: fix links to documentation 2024-10-28 19:56:12 +01:00
Felix Bühler
3f8d6caed2
nixos/xl2tpd: prefer 'install' over 'chmod/chown' (#302388) 2024-10-27 19:21:21 +01:00
Martin Weinelt
5e10c1522b
nixos/avahi-daemon: set up sandboxing (#348406) 2024-10-26 16:22:04 +02:00
Martin Weinelt
ca4f13857c
nixos/coturn: set up sandboxing (#348396) 2024-10-26 16:21:46 +02:00