Skip to content

Commit ec6cecf

Browse files
Merge master into staging-next
2 parents f609feb + 0cc343a commit ec6cecf

File tree

115 files changed

+731
-502
lines changed

Some content is hidden

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

115 files changed

+731
-502
lines changed

maintainers/maintainer-list.nix

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4992,7 +4992,7 @@
49924992
githubId = 15233006;
49934993
};
49944994
connorbaker = {
4995-
email = "connor.baker@tweag.io";
4995+
email = "ConnorBaker01@gmail.com";
49964996
matrix = "@connorbaker:matrix.org";
49974997
github = "ConnorBaker";
49984998
name = "Connor Baker";
@@ -18552,12 +18552,6 @@
1855218552
githubId = 16345849;
1855318553
name = "Parthiv Seetharaman";
1855418554
};
18555-
paddygord = {
18556-
email = "pgpatrickgordon@gmail.com";
18557-
github = "avagordon01";
18558-
githubId = 10776658;
18559-
name = "Patrick Gordon";
18560-
};
1856118555
paepcke = {
1856218556
email = "git@paepcke.de";
1856318557
github = "paepckehh";

nixos/lib/systemd-unit-options.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ rec {
9999
Defines how unit configuration is provided for systemd:
100100
101101
`asDropinIfExists` creates a unit file when no unit file is provided by the package
102-
otherwise a drop-in file name `overrides.conf`.
102+
otherwise it creates a drop-in file named `overrides.conf`.
103103
104104
`asDropin` creates a drop-in file named `overrides.conf`.
105105
Mainly needed to define instances for systemd template units (e.g. `systemd-nspawn@mycontainer.service`).

nixos/modules/installer/tools/tools.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ let
159159
160160
# programs.firefox.enable = true;
161161
162-
# List packages installed in system profile. To search, run:
163-
# \$ nix search wget
162+
# List packages installed in system profile.
163+
# You can use https://search.nixos.org/ to find more packages (and options).
164164
# environment.systemPackages = with pkgs; [
165165
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
166166
# wget

nixos/modules/services/hardware/udev.nix

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ let
5555
preferLocalBuild = true;
5656
allowSubstitutes = false;
5757
packages = lib.unique (map toString udevPackages);
58-
59-
nativeBuildInputs = [
60-
pkgs.systemdMinimal
61-
];
6258
}
6359
''
6460
mkdir -p $out
@@ -151,11 +147,6 @@ let
151147
exit 1
152148
fi
153149
154-
# Verify all the udev rules
155-
echo "Verifying udev rules using udevadm verify..."
156-
udevadm verify --resolve-names=never --no-style $out
157-
echo "OK"
158-
159150
# If auto-configuration is disabled, then remove
160151
# udev's 80-drivers.rules file, which contains rules for
161152
# automatically calling modprobe.

nixos/modules/services/monitoring/ups.nix

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ let
7474
};
7575

7676
installSecrets =
77-
source: target: secrets:
77+
source: target: owner: secrets:
7878
pkgs.writeShellScript "installSecrets.sh" ''
79-
install -m0600 -D ${source} "${target}"
79+
install -m0600 -o${owner} -D ${source} "${target}"
8080
${lib.concatLines (
8181
lib.forEach secrets (name: ''
8282
${pkgs.replace-secret}/bin/replace-secret \
@@ -327,6 +327,23 @@ let
327327
description = "Whether to enable `upsmon`.";
328328
};
329329

330+
user = lib.mkOption {
331+
type = lib.types.str;
332+
default = "nutmon";
333+
description = ''
334+
User to run `upsmon` as. `upsmon.conf` will have its owner set to this
335+
user. If not specified, a default user will be created.
336+
'';
337+
};
338+
group = lib.mkOption {
339+
type = lib.types.str;
340+
default = "nutmon";
341+
description = ''
342+
Group for the default `nutmon` user. If the default user is created
343+
and this is not specified, a default group will be created.
344+
'';
345+
};
346+
330347
monitor = lib.mkOption {
331348
type = with lib.types; attrsOf (submodule monitorOptions);
332349
default = { };
@@ -344,7 +361,6 @@ let
344361
MONITOR = <generated from config.power.ups.upsmon.monitor>
345362
NOTIFYCMD = "''${pkgs.nut}/bin/upssched";
346363
POWERDOWNFLAG = "/run/killpower";
347-
RUN_AS_USER = "root";
348364
SHUTDOWNCMD = "''${pkgs.systemd}/bin/shutdown now";
349365
}
350366
'';
@@ -382,7 +398,6 @@ let
382398
);
383399
NOTIFYCMD = lib.mkDefault "${pkgs.nut}/bin/upssched";
384400
POWERDOWNFLAG = lib.mkDefault "/run/killpower";
385-
RUN_AS_USER = "root"; # TODO: replace 'root' by another username.
386401
SHUTDOWNCMD = lib.mkDefault "${pkgs.systemd}/bin/shutdown now";
387402
};
388403
};
@@ -581,7 +596,7 @@ in
581596
systemd.services.upsmon =
582597
let
583598
secrets = lib.mapAttrsToList (name: monitor: "upsmon_password_${name}") cfg.upsmon.monitor;
584-
createUpsmonConf = installSecrets upsmonConf "/run/nut/upsmon.conf" secrets;
599+
createUpsmonConf = installSecrets upsmonConf "/run/nut/upsmon.conf" cfg.upsmon.user secrets;
585600
in
586601
{
587602
enable = cfg.upsmon.enable;
@@ -591,7 +606,7 @@ in
591606
serviceConfig = {
592607
Type = "forking";
593608
ExecStartPre = "${createUpsmonConf}";
594-
ExecStart = "${pkgs.nut}/sbin/upsmon";
609+
ExecStart = "${pkgs.nut}/sbin/upsmon -u ${cfg.upsmon.user}";
595610
ExecReload = "${pkgs.nut}/sbin/upsmon -c reload";
596611
LoadCredential = lib.mapAttrsToList (
597612
name: monitor: "upsmon_password_${name}:${monitor.passwordFile}"
@@ -604,7 +619,7 @@ in
604619
systemd.services.upsd =
605620
let
606621
secrets = lib.mapAttrsToList (name: user: "upsdusers_password_${name}") cfg.users;
607-
createUpsdUsers = installSecrets upsdUsers "/run/nut/upsd.users" secrets;
622+
createUpsdUsers = installSecrets upsdUsers "/run/nut/upsd.users" "root" secrets;
608623
in
609624
{
610625
enable = cfg.upsd.enable;
@@ -696,18 +711,11 @@ in
696711

697712
services.udev.packages = [ pkgs.nut ];
698713

699-
/*
700-
users.users.nut =
701-
{ uid = 84;
702-
home = "/var/lib/nut";
703-
createHome = true;
704-
group = "nut";
705-
description = "UPnP A/V Media Server user";
706-
};
707-
708-
users.groups."nut" =
709-
{ gid = 84; };
710-
*/
714+
users.users.nutmon = lib.mkIf (cfg.upsmon.user == "nutmon") {
715+
isSystemUser = true;
716+
group = cfg.upsmon.group;
717+
};
718+
users.groups.nutmon = lib.mkIf (cfg.upsmon.user == "nutmon" && cfg.upsmon.group == "nutmon") { };
711719

712720
};
713721
}

nixos/modules/virtualisation/waagent.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ let
228228
};
229229
};
230230

231-
AutoUpdate.Enable = lib.mkOption {
231+
AutoUpdate.UpdateToLatestVersion = lib.mkOption {
232232
type = types.bool;
233233
default = false;
234234
description = ''
235-
Whether or not to enable autoupdate for goal state processing.
235+
Whether or not to enable auto-update of the Extension Handler.
236236
'';
237237
};
238238
};

nixos/tests/zram-generator.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
machine.wait_for_unit("systemd-zram-setup@zram0.service")
3939
machine.wait_for_unit("systemd-zram-setup@zram1.service")
4040
zram = machine.succeed("zramctl --noheadings --raw")
41-
swap = machine.succeed("swapon --show --noheadings")
41+
swap = machine.succeed("swapon --show --noheadings --raw")
4242
for i in range(2):
4343
assert f"/dev/zram{i} lz4 10M" in zram
44-
assert f"/dev/zram{i} partition 10M" in swap
44+
assert f"/dev/zram{i} partition 10M" in swap
4545
'';
4646
}

pkgs/applications/editors/vim/plugins/generated.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14545,6 +14545,19 @@ final: prev: {
1454514545
meta.hydraPlatforms = [ ];
1454614546
};
1454714547

14548+
timerly = buildVimPlugin {
14549+
pname = "timerly";
14550+
version = "2025-04-16";
14551+
src = fetchFromGitHub {
14552+
owner = "nvzone";
14553+
repo = "timerly";
14554+
rev = "17299a4d332c483ce09052fe8478b41b992f2594";
14555+
sha256 = "0nfyw98nb95df0dpnxlaipgar92b8z2z3rxfih2fc86m6gxv2mm2";
14556+
};
14557+
meta.homepage = "https://github.com/nvzone/timerly/";
14558+
meta.hydraPlatforms = [ ];
14559+
};
14560+
1454814561
timestamp-vim = buildVimPlugin {
1454914562
pname = "timestamp.vim";
1455014563
version = "2010-11-06";

pkgs/applications/editors/vim/plugins/overrides.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3353,6 +3353,10 @@ in
33533353
];
33543354
};
33553355

3356+
timerly = super.timerly.overrideAttrs {
3357+
dependencies = [ self.nvzone-volt ];
3358+
};
3359+
33563360
tmux-complete-vim = super.tmux-complete-vim.overrideAttrs {
33573361
# Vim plugin with optional nvim-compe lua module
33583362
nvimSkipModules = [ "compe_tmux" ];

pkgs/applications/editors/vim/plugins/vim-plugin-names

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,7 @@ https://github.com/johmsalas/text-case.nvim/,HEAD,
11161116
https://github.com/vhsconnect/themed-tabs.nvim/,HEAD,
11171117
https://github.com/ron89/thesaurus_query.vim/,,
11181118
https://github.com/itchyny/thumbnail.vim/,,
1119+
https://github.com/nvzone/timerly/,HEAD,
11191120
https://github.com/vim-scripts/timestamp.vim/,,
11201121
https://github.com/levouh/tint.nvim/,HEAD,
11211122
https://github.com/tinted-theming/tinted-vim/,HEAD,

0 commit comments

Comments
 (0)