1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-18 23:50:07 +03:00
Commit graph

4399 commits

Author SHA1 Message Date
Martin Weinelt
269d596970
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.
2025-01-01 02:33:23 +01:00
toinux
a2c878df50
nixos/keepalived: add package option (#346462)
KeepAlived: Support pkg override without overlaying

Co-authored-by: Antoine 'Toinux' Lesieur <toinux@nixos.local>
Co-authored-by: Arne Keller <arne.keller@posteo.de>
2024-12-31 17:28:57 +01:00
Gaétan Lepage
682b8079b6
nixos/biboumi + biboumi: fixup module + make optional libraries optional (#365342) 2024-12-31 09:35:11 +01:00
nicoo
238b407862
nixos: hardware.pulseaudio → services.pulseaudio (#369391) 2024-12-30 13:46:50 +00:00
Markus Kowalewski
bea29cd04f
nixos/zenohd: add module and test (#368613) 2024-12-30 12:32:19 +01:00
Franz Pletz
3a3b9dbba3
nixos/minidlna: refactor (#344018) 2024-12-29 16:21:13 +01:00
Arne Keller
5de8c5b941
nixos/chrony: fix memory locking issue with graphene-hardened-light (#356837) 2024-12-29 15:08:43 +01:00
misuzu
1bdf3ca3ad
nixos/wireguard-networkd: fix loading pre shared keys for peers without a custom name (#368684) 2024-12-29 11:33:22 +02:00
rnhmjoj
69b630d893
nixos/networkmanager: match upstream units Install sections
The upstream NetworkManager.service unit[1] has this Install section:

  [Install]
  WantedBy=multi-user.target
  Also=NetworkManager-dispatcher.service
  Also=NetworkManager-wait-online.service

Let's just match that in NixOS and don't try to mess with
network.target. The latter should only be used to order units at
shutdown, not when booting.

[1]: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/data/NetworkManager.service.in?ref_type=heads
2024-12-28 12:09:59 +01:00
Markus Kowalewski
6298d3e530
nixos/zenohd: add module and test 2024-12-28 02:09:38 +01:00
networkException
c1eb3b68f8
nixos/wireguard-networkd: escape backslashes in systemd credential names
This patch fixes loading issues for pre shared keys for
peers without custom names. In this case the peer's public
key would be used in the name for the corresponding pre
shared key credential, causing a loading error.

The networking.wireguard base module already escapes some
base64 characters of the public key with escape sequences
starting with a backslash. This backslash is now replaced
with an underscore for use in the credential names.
2024-12-28 01:34:11 +01:00
networkException
e7e42de5a7
nixos/wireguard-networkd: only set PresharedKey credential when given a file
This patch fixes an oversight in the initial implementation
of using systemd credentials in 6bc8dcc630
that would cause a warning to be logged about a missing credential
when presharedKeyFile wasn't set.
2024-12-27 23:14:32 +01:00
Alex Martens
403dfb7c93 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.
2024-12-26 23:59:47 +01:00
Sebastian Sinnlos
7a485e4780 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)
2024-12-26 20:48:42 +01:00
misuzu
db3422a82f
nixos/hostapd: remove CCMP from recommended ciphers (#367464) 2024-12-25 18:32:44 +02:00
oddlama
8b193d75ac
nixos/hostapd: remove CCMP-256 from recommended ciphers 2024-12-25 16:27:05 +01:00
Stefan Frijters
31942f20f4 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.
2024-12-22 16:20:31 -06:00
oddlama
e130769df5
nixos/hostapd: remove unused imports 2024-12-22 22:10:46 +01:00
Arne Keller
8e8d65e1ca
nixos/bind: harden systemd service (#349548) 2024-12-21 17:07:03 +01:00
Arne Keller
b59477329f
nixos/mullvad-vpn: remove unneeded hacks (#341992) 2024-12-21 15:48:44 +01:00
Jan Tojnar
b1ce176cd1
Merge nixos/networkmanager: add options to supply secrets to connection profiles based on secret files (#352960) 2024-12-20 15:35:15 +01:00
misuzu
a01b0bf2fe
nixos/networkmanager: split modemmanager into a separate module (#316824) 2024-12-20 13:06:35 +02:00
Colin
efc3208be2 nixos/networkmanager: add a package option
this is helpful for testing module changes or making downstream patches
in a way which doesn't force large rebuilds as an overlay would.
2024-12-20 10:03:47 +00:00
Colin
9d4d21b587 nixos/modemmanager: add a package option
this is helpful for testing module changes or making downstream patches
in a way which doesn't force large rebuilds as an overlay would.
2024-12-20 10:03:42 +00:00
Colin
5a04fc7e7d nixos/networkmanager: format with nixfmt 2024-12-19 22:44:47 +00:00
Colin
0deadd5baf nixos/networkmanager: split ModemManager bits into own module
this should not result in any observable change by default, the
motivation is to make working on either one of these components in
isolation of the other a bit easier.
2024-12-19 22:44:47 +00:00
Thiago Kenji Okada
8369379c1b
sunshine: resolve tray icon issues (#364438) 2024-12-19 20:50:33 +00:00
bb2020
cf63529fc5 nixos/minidlna: refactor 2024-12-19 21:21:14 +03:00
Arne Keller
222f73ddbe
nixos/tftpd: remove with lib, format with nixmft-rfc-style (#353658) 2024-12-18 19:36:30 +01:00
Arne Keller
f610b7204c
whoogle-search: init at 0.9.0, add module (#350730) 2024-12-18 18:52:29 +01:00
Malte Voos
1cf796812a nixos/whoogle-seach: add module 2024-12-18 15:14:45 +01:00
lilly
24e0db1ba9
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.
2024-12-17 17:32:51 +01:00
โทสตัล
3284305eb3 allow the ability to skip the database 2024-12-17 19:55:46 +07:00
โทสตัล
a7e3b6a1ae nixos/biboumi: update docs version 2024-12-17 19:55:46 +07:00
โทสตัล
6900d0cf3e nixos/biboumi: expose package for overriding 2024-12-17 19:55:46 +07:00
Morgan Helton
f6262762b2
sunshine: fix tray icon and menu links 2024-12-16 18:43:39 -06:00
networkException
1fc937818d
nixos/wireguard-networkd: fix systemd credentials not working with multiple keys per interface
This patch fixes systemd credential loading for wireguard
with networkd not working when specifying more than one
credential per interface by properly flattening the resulting
multidimensional list instead of falling back on string concat
with a space.

Resolves #365402
2024-12-15 19:22:33 +01:00
Michele Guerini Rocco
9bdcd51ed6
nixos/dhcpcd: fix when ipv6 is disabled (#362568) 2024-12-14 14:23:06 +01:00
misuzu
382e7cbf49
nixos/hickory-dns: make settings.zone freeform; expose configFile option (#363001) 2024-12-14 12:45:21 +02:00
Arne Keller
e88362522c
nixos/resilio: set rslsync gid (#350055) 2024-12-12 22:32:16 +01:00
nicoo
f6c5531461
nixos: Don't set !allowSubstitutes (#314664)
It is set by `runCommandLocal` and prevents fetching the build output
from `cache.nixos.org` or another trusted substituter.
2024-12-12 18:26:24 +00:00
Arne Keller
138ac300df
nixos/v2ray: change the type of config field (#163810) 2024-12-11 10:30:02 +01:00
Majiir Paktu
e5a456f26f nixos/wireguard-networkd: re-enable by default for networkd users 2024-12-10 19:33:45 -05:00
Majiir Paktu
6bc8dcc630 nixos/wireguard-networkd: use systemd credentials for privateKeyFile and presharedKeyFile 2024-12-10 19:33:45 -05:00
Majiir Paktu
cca305f3e3 nixos/wireguard-networkd: fix issue link 2024-12-10 16:57:53 -05:00
Majiir Paktu
a93d42e97e nixos/wireguard-networkd: disable by default
Enabling networking.wireguard.useNetworkd currently requires users to
modify the permissions of their private key files. Since that is a bad
upgrade experience, the module should be disabled by default for now.
Once systemd credential support is added to the module, it should be
safe to once again enable it by default for networkd users.
2024-12-10 16:54:50 -05:00
misuzu
ad12b26526
nixos/crab-hole: init (#341598) 2024-12-10 22:16:50 +02:00
NiklasVousten
bd4a6b9aae nixos/crab-hole: init crab-hole 2024-12-10 21:08:31 +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
Weijia Wang
dce92e62e7
v2raya: add cliPackage option (#334876) 2024-12-09 19:19:01 +01:00