Skip to content

Commit 182792a

Browse files
committed
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts: - pkgs/development/python-modules/laundrify-aio/default.nix
2 parents b110ca4 + e7f2456 commit 182792a

File tree

52 files changed

+932
-378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+932
-378
lines changed

maintainers/scripts/pluginupdate.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,11 @@ def update_plugins(editor: Editor, args):
791791
All input arguments are grouped in the `Editor`."""
792792

793793
log.info("Start updating plugins")
794+
if args.proc > 1 and args.github_token == None:
795+
log.warning("You have enabled parallel updates but haven't set a github token.\n"
796+
"You may be hit with `HTTP Error 429: too many requests` as a consequence."
797+
"Either set --proc=1 or --github-token=YOUR_TOKEN. ")
798+
794799
fetch_config = FetchConfig(args.proc, args.github_token)
795800
update = editor.get_update(args.input_file, args.outfile, fetch_config)
796801

nixos/doc/manual/release-notes/rl-2311.section.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ Make sure to also check the many updates in the [Nixpkgs library](#sec-release-2
10171017

10181018
- [trust-dns](https://trust-dns.org/), a Rust based DNS server built to be safe
10191019
and secure from the ground up. Available as
1020-
[services.trust-dns](#opt-services.trust-dns.enable).
1020+
`services.trust-dns`.
10211021

10221022
- [osquery](https://www.osquery.io/), a SQL powered operating system
10231023
instrumentation, monitoring, and analytics. Available as

nixos/doc/manual/release-notes/rl-2411.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@
309309

310310
- The `xdg.portal.gtkUsePortal` option has been removed, as it had been deprecated for over 2 years. Using the `GTK_USE_PORTAL` environment variable in this manner is not intended nor encouraged by the GTK developers, but can still be done manually via `environment.sessionVariables`.
311311

312+
- The `services.trust-dns` module has been renamed to `services.hickory-dns`.
313+
312314
## Other Notable Changes {#sec-release-24.11-notable-changes}
313315

314316
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

nixos/modules/module-list.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@
10471047
./services/networking/harmonia.nix
10481048
./services/networking/haproxy.nix
10491049
./services/networking/headscale.nix
1050+
./services/networking/hickory-dns.nix
10501051
./services/networking/hostapd.nix
10511052
./services/networking/htpdate.nix
10521053
./services/networking/https-dns-proxy.nix
@@ -1234,7 +1235,6 @@
12341235
./services/networking/tox-node.nix
12351236
./services/networking/toxvpn.nix
12361237
./services/networking/trickster.nix
1237-
./services/networking/trust-dns.nix
12381238
./services/networking/tvheadend.nix
12391239
./services/networking/twingate.nix
12401240
./services/networking/ucarp.nix

nixos/modules/services/networking/trust-dns.nix renamed to nixos/modules/services/networking/hickory-dns.nix

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{ config, lib, pkgs, ... }:
22
let
3-
cfg = config.services.trust-dns;
3+
cfg = config.services.hickory-dns;
44
toml = pkgs.formats.toml { };
55

6-
configFile = toml.generate "trust-dns.toml" (
6+
configFile = toml.generate "hickory-dns.toml" (
77
lib.filterAttrsRecursive (_: v: v != null) cfg.settings
88
);
99

@@ -26,7 +26,7 @@ let
2626
- "Forward" (a cached zone where all requests are forwarded to another resolver).
2727
2828
For more details about these zone types, consult the documentation for BIND,
29-
though note that trust-dns supports only a subset of BIND's zone types:
29+
though note that hickory-dns supports only a subset of BIND's zone types:
3030
<https://bind9.readthedocs.io/en/v9_18_4/reference.html#type>
3131
'';
3232
};
@@ -45,10 +45,19 @@ let
4545
in
4646
{
4747
meta.maintainers = with lib.maintainers; [ colinsane ];
48+
49+
imports = with lib; [
50+
(mkRenamedOptionModule [ "services" "trust-dns" "enable" ] [ "services" "hickory-dns" "enable" ])
51+
(mkRenamedOptionModule [ "services" "trust-dns" "package" ] [ "services" "hickory-dns" "package" ])
52+
(mkRenamedOptionModule [ "services" "trust-dns" "settings" ] [ "services" "hickory-dns" "settings" ])
53+
(mkRenamedOptionModule [ "services" "trust-dns" "quiet" ] [ "services" "hickory-dns" "quiet" ])
54+
(mkRenamedOptionModule [ "services" "trust-dns" "debug" ] [ "services" "hickory-dns" "debug" ])
55+
];
56+
4857
options = {
49-
services.trust-dns = with lib; {
50-
enable = mkEnableOption "trust-dns";
51-
package = mkPackageOption pkgs "trust-dns" {
58+
services.hickory-dns = with lib; {
59+
enable = mkEnableOption "hickory-dns";
60+
package = mkPackageOption pkgs "hickory-dns" {
5261
extraDescription = ''
5362
::: {.note}
5463
The package must provide `meta.mainProgram` which names the server binary; any other utilities (client, resolver) are not needed.
@@ -75,9 +84,9 @@ in
7584
};
7685
settings = mkOption {
7786
description = ''
78-
Settings for trust-dns. The options enumerated here are not exhaustive.
87+
Settings for hickory-dns. The options enumerated here are not exhaustive.
7988
Refer to upstream documentation for all available options:
80-
- [Example settings](https://github.com/bluejekyll/trust-dns/blob/main/tests/test-data/test_configs/example.toml)
89+
- [Example settings](https://github.com/hickory-dns/hickory-dns/blob/main/tests/test-data/test_configs/example.toml)
8190
'';
8291
type = types.submodule {
8392
freeformType = toml.type;
@@ -106,9 +115,9 @@ in
106115
};
107116
directory = mkOption {
108117
type = types.str;
109-
default = "/var/lib/trust-dns";
118+
default = "/var/lib/hickory-dns";
110119
description = ''
111-
The directory in which trust-dns should look for .zone files,
120+
The directory in which hickory-dns should look for .zone files,
112121
whenever zones aren't specified by absolute path.
113122
'';
114123
};
@@ -124,23 +133,23 @@ in
124133
};
125134

126135
config = lib.mkIf cfg.enable {
127-
systemd.services.trust-dns = {
128-
description = "trust-dns Domain Name Server";
129-
unitConfig.Documentation = "https://trust-dns.org/";
136+
systemd.services.hickory-dns = {
137+
description = "hickory-dns Domain Name Server";
138+
unitConfig.Documentation = "https://hickory-dns.org/";
130139
serviceConfig = {
131140
ExecStart =
132141
let
133142
flags = (lib.optional cfg.debug "--debug") ++ (lib.optional cfg.quiet "--quiet");
134143
flagsStr = builtins.concatStringsSep " " flags;
135144
in ''
136-
${cfg.package}/bin/${cfg.package.meta.mainProgram} --config ${configFile} ${flagsStr}
145+
${lib.getExe cfg.package} --config ${configFile} ${flagsStr}
137146
'';
138147
Type = "simple";
139148
Restart = "on-failure";
140149
RestartSec = "10s";
141150
DynamicUser = true;
142151

143-
StateDirectory = "trust-dns";
152+
StateDirectory = "hickory-dns";
144153
ReadWritePaths = [ cfg.settings.directory ];
145154

146155
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];

0 commit comments

Comments
 (0)