Skip to content

Commit 328f4a4

Browse files
Merge master into staging-next
2 parents 015258f + dc43660 commit 328f4a4

112 files changed

Lines changed: 900 additions & 549 deletions

File tree

Some content is hidden

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

.github/workflows/check.yml

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@ on:
1212
mergedSha:
1313
required: true
1414
type: string
15-
ownersCanFail:
16-
required: true
17-
type: boolean
1815
targetSha:
1916
required: true
2017
type: string
2118
secrets:
2219
CACHIX_AUTH_TOKEN:
2320
required: true
24-
OWNER_RO_APP_PRIVATE_KEY:
25-
required: true
2621

2722
permissions: {}
2823

@@ -72,19 +67,8 @@ jobs:
7267
GH_TOKEN: ${{ github.token }}
7368
run: gh api /rate_limit | jq
7469

75-
# For checking code owners, this job depends on a GitHub App with the following permissions:
76-
# - Permissions:
77-
# - Repository > Administration: read-only
78-
# - Organization > Members: read-only
79-
# - Install App on this repository, setting these variables:
80-
# - OWNER_RO_APP_ID (variable)
81-
# - OWNER_RO_APP_PRIVATE_KEY (secret)
82-
#
83-
# This should not use the same app as the job to request reviewers, because this job requires
84-
# handling untrusted PR input.
8570
owners:
8671
runs-on: ubuntu-24.04-arm
87-
continue-on-error: ${{ inputs.ownersCanFail }}
8872
timeout-minutes: 5
8973
steps:
9074
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -94,7 +78,6 @@ jobs:
9478
uses: ./.github/actions/checkout
9579
with:
9680
merged-as-untrusted-at: ${{ inputs.mergedSha }}
97-
target-as-trusted-at: ${{ inputs.targetSha }}
9881

9982
- uses: cachix/install-nix-action@9280e7aca88deada44c930f1e2c78e21c3ae3edd # v31
10083

@@ -107,36 +90,15 @@ jobs:
10790
pushFilter: -source$
10891

10992
- name: Build codeowners validator
110-
run: nix-build nixpkgs/trusted/ci --arg nixpkgs ./nixpkgs/trusted-pinned -A codeownersValidator
111-
112-
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
113-
if: github.event_name == 'pull_request_target' && vars.OWNER_RO_APP_ID
114-
id: app-token
115-
with:
116-
app-id: ${{ vars.OWNER_RO_APP_ID }}
117-
private-key: ${{ secrets.OWNER_RO_APP_PRIVATE_KEY }}
118-
permission-administration: read
119-
permission-members: read
120-
121-
- name: Log current API rate limits
122-
if: steps.app-token.outputs.token
123-
env:
124-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
125-
run: gh api /rate_limit | jq
93+
run: nix-build nixpkgs/untrusted/ci --arg nixpkgs ./nixpkgs/untrusted-pinned -A codeownersValidator
12694

12795
- name: Validate codeowners
128-
if: steps.app-token.outputs.token
12996
env:
13097
OWNERS_FILE: nixpkgs/untrusted/ci/OWNERS
131-
GITHUB_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }}
13298
REPOSITORY_PATH: nixpkgs/untrusted
133-
OWNER_CHECKER_REPOSITORY: ${{ github.repository }}
99+
# Omits "owners", which checks whether GitHub handles exist, but fails with nested team
100+
# structures.
101+
CHECKS: "duppatterns,files,syntax"
134102
# Set this to "notowned,avoid-shadowing" to check that all files are owned by somebody
135103
EXPERIMENTAL_CHECKS: "avoid-shadowing"
136104
run: result/bin/codeowners-validator
137-
138-
- name: Log current API rate limits
139-
if: steps.app-token.outputs.token
140-
env:
141-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
142-
run: gh api /rate_limit | jq

.github/workflows/pr.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111
OWNER_APP_PRIVATE_KEY:
1212
# The Test workflow should not actually request reviews from owners.
1313
required: false
14-
OWNER_RO_APP_PRIVATE_KEY:
15-
required: true
1614

1715
concurrency:
1816
group: pr-${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
@@ -59,13 +57,11 @@ jobs:
5957
pull-requests: write
6058
secrets:
6159
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
62-
OWNER_RO_APP_PRIVATE_KEY: ${{ secrets.OWNER_RO_APP_PRIVATE_KEY }}
6360
with:
6461
baseBranch: ${{ needs.prepare.outputs.baseBranch }}
6562
headBranch: ${{ needs.prepare.outputs.headBranch }}
6663
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
6764
targetSha: ${{ needs.prepare.outputs.targetSha }}
68-
ownersCanFail: ${{ !contains(fromJSON(needs.prepare.outputs.touched), 'owners') }}
6965

7066
lint:
7167
name: Lint

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ jobs:
9898
secrets:
9999
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
100100
NIXPKGS_CI_APP_PRIVATE_KEY: ${{ secrets.NIXPKGS_CI_APP_PRIVATE_KEY }}
101-
OWNER_RO_APP_PRIVATE_KEY: ${{ secrets.OWNER_RO_APP_PRIVATE_KEY }}
102101

103102
push:
104103
if: needs.prepare.outputs.push

ci/github-script/prepare.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ module.exports = async ({ github, context, core, dry }) => {
221221

222222
const touched = []
223223
if (files.includes('ci/pinned.json')) touched.push('pinned')
224-
if (files.includes('ci/OWNERS')) touched.push('owners')
225224
core.setOutput('touched', touched)
226225

227226
return

maintainers/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,15 @@ When reviewing changes to a team, read the team's scope and the context around t
155155
In any case, request reviews from the existing team members.
156156
If the team lists no specific membership policy, feel free to merge changes to the team after giving the existing members a few days to respond.
157157

158-
*Important:* If a team says it is a closed group, do not merge additions to the team without an approval by at least one existing member.
158+
> [!IMPORTANT]
159+
> If a team says it is a closed group, do not merge additions to the team without an approval by at least one existing member.
159160
161+
A corresponding GitHub team can be created by any org member.
162+
When creating the team it should be created with the `nixpkgs-maintainers` team as parent.
163+
Once approved, the team will have the right privileges to be pinged and requested for review in Nixpkgs.
164+
165+
> [!TIP]
166+
> The team name should be as short as possible; because it is nested under the maintainers group, no -maintainers suffix is needed.
160167
161168
# Maintainer scripts
162169

maintainers/maintainer-list.nix

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18098,12 +18098,6 @@
1809818098
githubId = 50854675;
1809918099
name = "Nelson Jeppesen";
1810018100
};
18101-
neonfuz = {
18102-
email = "neonfuz@gmail.com";
18103-
github = "neonfuz";
18104-
githubId = 2590830;
18105-
name = "Sage Raflik";
18106-
};
1810718101
neosimsim = {
1810818102
email = "me@abn.sh";
1810918103
github = "neosimsim";
@@ -19975,12 +19969,6 @@
1997519969
githubId = 63069986;
1997619970
name = "Per Stark";
1997719971
};
19978-
petee = {
19979-
name = "Pete Erickson";
19980-
email = "pete.perickson@gmail.com";
19981-
github = "petee";
19982-
githubId = 89916;
19983-
};
1998419972
Peter3579 = {
1998519973
github = "Peter3579";
1998619974
githubId = 170885528;

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

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

199199
- The `services.postgresql` module now sets up a systemd unit `postgresql.target`. Depending on `postgresql.target` guarantees that postgres is in read-write mode and initial/ensure scripts were executed. Depending on `postgresql.service` only guarantees a read-only connection.
200200

201+
- The `services.mysql` module now restarts the database `on-abnormal`, which means that it now will be restarted in certain situations, it wasn't before. For example an OOM-kill.
202+
201203
- The `services.siproxd` module has been removed as `siproxd` is unmaintained and broken with libosip 5.x.
202204

203205
- `services.tor.torsocks.enable` no longer defaults to true if Tor and Tor client functionality is enabled.

nixos/modules/hardware/opentabletdriver.nix

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,16 @@ in
5353

5454
boot.blacklistedKernelModules = cfg.blacklistedKernelModules;
5555

56-
systemd.user.services.opentabletdriver =
57-
with pkgs;
58-
lib.mkIf cfg.daemon.enable {
59-
description = "Open source, cross-platform, user-mode tablet driver";
60-
wantedBy = [ "graphical-session.target" ];
61-
partOf = [ "graphical-session.target" ];
56+
systemd.user.services.opentabletdriver = lib.mkIf cfg.daemon.enable {
57+
description = "Open source, cross-platform, user-mode tablet driver";
58+
wantedBy = [ "graphical-session.target" ];
59+
partOf = [ "graphical-session.target" ];
6260

63-
serviceConfig = {
64-
Type = "simple";
65-
ExecStart = "${cfg.package}/bin/otd-daemon";
66-
Restart = "on-failure";
67-
};
61+
serviceConfig = {
62+
Type = "simple";
63+
ExecStart = lib.getExe' cfg.package "otd-daemon";
64+
Restart = "on-failure";
6865
};
66+
};
6967
};
7068
}

nixos/modules/services/databases/mysql.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ in
691691
serviceConfig = lib.mkMerge [
692692
{
693693
Type = if hasNotify then "notify" else "simple";
694-
Restart = "on-abort";
694+
Restart = "on-abnormal";
695695
RestartSec = "5s";
696696

697697
# User and group

nixos/modules/services/networking/bird-lg.nix

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let
1616
{
1717
"--servers" = lib.concatStringsSep "," fe.servers;
1818
"--domain" = fe.domain;
19-
"--listen" = fe.listenAddress;
19+
"--listen" = stringOrConcat "," fe.listenAddresses;
2020
"--proxy-port" = fe.proxyPort;
2121
"--whois" = fe.whois;
2222
"--dns-interface" = fe.dnsInterface;
@@ -37,7 +37,7 @@ let
3737
{
3838
"--allowed" = lib.concatStringsSep "," px.allowedIPs;
3939
"--bird" = px.birdSocket;
40-
"--listen" = px.listenAddress;
40+
"--listen" = stringOrConcat "," px.listenAddresses;
4141
"--traceroute_bin" = px.traceroute.binary;
4242
"--traceroute_flags" = lib.concatStringsSep " " px.traceroute.flags;
4343
"--traceroute_raw" = px.traceroute.rawOutput;
@@ -58,6 +58,17 @@ let
5858
args: lib.mapAttrsToList (name: value: "${name} " + mkArgValue value) (filterNull args);
5959
in
6060
{
61+
imports = [
62+
(lib.mkRenamedOptionModule
63+
[ "services" "bird-lg" "frontend" "listenAddress" ]
64+
[ "services" "bird-lg" "frontend" "listenAddresses" ]
65+
)
66+
(lib.mkRenamedOptionModule
67+
[ "services" "bird-lg" "proxy" "listenAddress" ]
68+
[ "services" "bird-lg" "proxy" "listenAddresses" ]
69+
)
70+
];
71+
6172
options = {
6273
services.bird-lg = {
6374
package = lib.mkPackageOption pkgs "bird-lg" { };
@@ -77,8 +88,8 @@ in
7788
frontend = {
7889
enable = lib.mkEnableOption "Bird Looking Glass Frontend Webserver";
7990

80-
listenAddress = lib.mkOption {
81-
type = lib.types.str;
91+
listenAddresses = lib.mkOption {
92+
type = with lib.types; either str (listOf str);
8293
default = "127.0.0.1:5000";
8394
description = "Address to listen on.";
8495
};
@@ -202,8 +213,8 @@ in
202213
proxy = {
203214
enable = lib.mkEnableOption "Bird Looking Glass Proxy";
204215

205-
listenAddress = lib.mkOption {
206-
type = lib.types.str;
216+
listenAddresses = lib.mkOption {
217+
type = with lib.types; either str (listOf str);
207218
default = "127.0.0.1:8000";
208219
description = "Address to listen on.";
209220
};

0 commit comments

Comments
 (0)