0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00
Commit graph

10217 commits

Author SHA1 Message Date
Robert Hensing
0b47fba230 Revert "nixos/nixpkgs: make config.nixpkgs.{localSystem,crossSystem,buildPlatform,hostPlatform} write only"
This reverts commit 0a19371146.
2025-02-05 14:29:18 +01:00
OPNA2608
500d48c7fd nixosTests.lomiri: Unify python function definitions, fix on weaker hardware
- Set wallpaper (where it doesn't cause issues) to simplify image for OCR
- Raise sleep before OCR to 30 (fixes OCR on my local aarch64 hardware? maybe being overloaded...)
2025-02-04 20:27:34 +01:00
nixpkgs-ci[bot]
996ffd0274
Merge staging-next into staging 2025-02-04 18:05:00 +00:00
K900
3029205c9c Merge remote-tracking branch 'origin/master' into staging-next 2025-02-04 17:12:39 +03:00
thomasjm
00a218abb2 mkBinaryCache: support different compression methods: xz (default), zstd, none 2025-02-04 05:49:39 -08:00
asymmetric
f2bb1efa65
nixos/geth: add sepolia, remove obsolete networks, fix license (#378301) 2025-02-04 13:32:40 +01:00
nixpkgs-ci[bot]
c91a43b5e5
Merge staging-next into staging 2025-02-04 12:06:36 +00:00
K900
3ddda10211 Merge remote-tracking branch 'origin/master' into staging-next 2025-02-04 10:29:11 +03:00
Martin Weinelt
573ebb1e13
nixos/home-assistant: declarative blueprints (#377688) 2025-02-04 00:43:44 +01:00
Robert Schütz
da7138684b nixos/home-assistant: declarative blueprints 2025-02-03 10:54:30 -08:00
nixpkgs-ci[bot]
c721a7fb35
Merge staging-next into staging 2025-02-03 18:05:46 +00:00
K900
945d2e2a7a Merge remote-tracking branch 'origin/master' into staging-next 2025-02-03 18:00:08 +03:00
nikstur
713e0478a6 nixos/tests/userborn: fix setting hostPlatform 2025-02-02 22:31:25 +01:00
OPNA2608
82c62d132e nixosTests.terminal-emulators.lomiri-terminal-app: Drop 2025-02-02 13:50:17 +01:00
nixpkgs-ci[bot]
0acbe87d4f
Merge staging-next into staging 2025-02-02 11:33:22 +00:00
nixpkgs-ci[bot]
e1353d0d8d
Merge master into staging-next 2025-02-02 11:32:53 +00:00
Wolfgang Walther
c1793a336b
pkgs/top-level: make package sets composable (reapply) (#376988) 2025-02-02 11:41:17 +01:00
K900
1fa0be855c Merge remote-tracking branch 'origin/staging-next' into staging 2025-02-02 09:49:00 +03:00
K900
c15f4ee007 Merge remote-tracking branch 'origin/master' into staging-next 2025-02-02 09:47:44 +03:00
Jörg Thalheim
b29c6f5a4a
stage-2-init: fix false positives for RO Nix store mounts (#375257) 2025-02-02 08:58:03 +07:00
nixpkgs-ci[bot]
9e06c2d43e
Merge staging-next into staging 2025-02-02 00:15:30 +00:00
NotAShelf
d36a364148
nixos/tests: add user-enable-option
Specifically for checking if a user exist when `users.users.<name>.enable` is set to `true`.
2025-02-02 02:07:11 +03:00
Sandro
bc32400f0d
swaylock,swaybg: fix svg support (#378270) 2025-02-01 22:10:38 +01:00
K900
d44bbfd49c Merge remote-tracking branch 'origin/master' into staging-next 2025-02-02 00:08:43 +03:00
Markus Kowalewski
1fb5e43217
zenoh-*: 1.1.1 -> 1.2.0 (#378511) 2025-02-01 21:21:04 +01:00
nixpkgs-ci[bot]
a48c44eb1d
Merge staging-next into staging 2025-02-01 18:04:20 +00:00
nikstur
8a12cae321 nixos/repart-image: support swap 2025-02-01 18:36:51 +01:00
K900
a49299aac8 Merge remote-tracking branch 'origin/master' into staging-next 2025-02-01 19:21:53 +03:00
Bobby Rong
a6555c222e
nixosTests.lxqt: init (#377023) 2025-02-01 21:18:35 +08:00
Bobby Rong
127113a73c
nixosTests.lxqt: init 2025-02-01 21:00:04 +08:00
K900
7017fbeb11 Merge remote-tracking branch 'origin/master' into staging-next 2025-02-01 15:17:10 +03:00
Markus Kowalewski
84c1c36a37 nixos/zenoh: fix test
Avoid timing issues by starting the router first
2025-02-01 12:33:23 +01:00
Wolfgang Walther
0a19371146
nixos/nixpkgs: make config.nixpkgs.{localSystem,crossSystem,buildPlatform,hostPlatform} write only
The description for options.nixpkgs.system already hints at this:

  Neither ${opt.system} nor any other option in nixpkgs.* is meant
  to be read by modules and configurations.
  Use pkgs.stdenv.hostPlatform instead.

We can support this goal by not elaborating the systems anymore, forcing
users to go via pkgs.stdenv.

This will prevent problems when making the top-level package sets
composable in the next commit. For this to work, you should pass a fully
elaborated system to nixpkgs' localSystem or crossSystem options.
2025-02-01 12:04:59 +01:00
Jared Baur
f38d462b9b
nixosTests.networking.networkd.bond: fix flakiness
We need to do the virtio link setup prior to `network.target`, since
systemd-networkd orders itself before `network.target`. So in order for
the bond to properly enslave the two virtio links, they should be
configured as a part of `network-pre.target`.
2025-01-31 18:54:59 -08:00
nixpkgs-ci[bot]
63ab5cd1c5
Merge staging-next into staging 2025-02-01 00:15:45 +00:00
K900
c2b7f783cb Merge remote-tracking branch 'origin/master' into staging-next 2025-02-01 00:55:04 +03:00
Felix Bühler
a3c8d04684
nixos/homer: init (#368594) 2025-01-31 22:34:36 +01:00
K900
be1a14b888 Merge remote-tracking branch 'origin/master' into staging-next 2025-01-31 23:04:28 +03:00
Lorenzo Manacorda
3ec974ac88 nixos/geth: add sepolia network 2025-01-31 17:11:27 +01:00
Tert0
71ce1c3413
nixos/tests/{sway,swayfx}: fix pgrep commands to match wrapped swaylock 2025-01-31 14:03:32 +01:00
shivaraj-bh
4b9de23515 nixos/open-webui: quote services.open-webui.host in start script 2025-01-31 16:05:12 +05:30
Felix Buehler
e1b59f78a9 nixos/homer: add tests 2025-01-30 21:58:25 +01:00
aszlig
e35a65a2f8
nixos: Fix timesyncd test for systemd >= 257.1
Version 257.1 of systemd changed[1] the PrivateTmp setting for the
systemd-timesyncd service from "yes" to "disconnected", which broke our
systemd-timesyncd test.

The reason for this is because the systemd-tmpfiles-setup.service is
*only*[2] added as a dependency of systemd-timesyncd.service if
PrivateTmp is set to "yes" but not when it is set to "disconnected"
(which would make sense given that the tmpfiles.d mechanism was
originally designed for temporary files).

Commit 339a866b7c switched the activation
script to using systemd-tmpfiles, but the commit in question doesn't
provide an explanation why this was necessary in this particular case.

However the pull request[3] lists an ongoing effort to get rid of Perl
and in the future get also rid of BASH for activation. The reasons for
doing this are outlined in the document[4]:

> The simple presence of interpreters on a system pose a security risk.
> An attacker that gains access to a system can abuse them to execute
> arbitrary commands. Mitre lists this as technique T1059. The most
> radical yet simple solution to mitigate this exploit is to remove all
> interpreters from a system (Mitre M1042). This radical solution is
> only really feasible and/or interesting for appliances (i.e.
> non-interactive) systems. Especially for high-security solutions this
> mitigtation is interesting.

I personally don't think this is a very compelling reason, at least for
our activation scripts, since an attacker could simply drop an
executable binary. Nevertheless, getting rid of additional dependencies
on eg. Perl or BASH is something worth pursuing to trim down moving
parts.

To address this, I decided to implement this as a normal systemd service
unit, since we need to guarantee that it's started before
systemd-timesyncd.service and with a dedicated unit we can ensure
explicit ordering. This has the advantage that we don't interfere with
the effort of getting rid of Perl/BASH for activation/boot and also
don't risk running into race conditions (again) because it's very
unlikely that systemd will change/deprecate explicit unit ordering in
the near future.

[1]: 1f6e192848
[2]: 30675a6ee9/src/core/unit.c (L1274)
[3]: https://github.com/NixOS/nixpkgs/pull/263203
[4]: https://pad.lassul.us/nixos-perlless-activation

Signed-off-by: aszlig <aszlig@nix.build>
2025-01-30 19:28:51 +01:00
nixpkgs-ci[bot]
089bfe7c41
Merge staging-next into staging 2025-01-30 18:04:56 +00:00
Alyssa Ross
97fc6f36d0
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/by-name/ez/eza/package.nix
	pkgs/by-name/re/rewatch/package.nix
	pkgs/by-name/rq/rqbit/package.nix
	pkgs/development/python-modules/diffusers/default.nix
	pkgs/development/python-modules/manga-ocr/default.nix
	pkgs/development/tools/misc/texlab/default.nix
2025-01-30 15:02:26 +01:00
Ramses
823a05829f
nixos/activation: pass the action as an argument to the pre-switch-checks (#377526) 2025-01-30 11:25:33 +01:00
nixpkgs-ci[bot]
354d9c1c97
Merge staging-next into staging 2025-01-29 18:04:58 +00:00
Martin Weinelt
909803a20e
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/by-name/au/automatic-timezoned/package.nix
- pkgs/by-name/da/darklua/package.nix
- pkgs/by-name/ki/kittycad-kcl-lsp/package.nix
- pkgs/by-name/li/limbo/package.nix
- pkgs/by-name/mi/minijinja/package.nix
- pkgs/by-name/pa/pay-respects/package.nix
- pkgs/by-name/ri/river-bsp-layout/package.nix
- pkgs/by-name/sv/svgbob/package.nix
- pkgs/by-name/tu/tui-journal/package.nix
- pkgs/by-name/wa/waypipe/package.nix
- pkgs/development/python-modules/zxcvbn-rs-py/default.nix
2025-01-29 16:08:53 +01:00
Franz Pletz
a9ac4deac7
nixos/hound: restart service on changes (#377611) 2025-01-29 09:52:05 +01:00
7c6f434c
721168adda
squid: add nixos test (#377284) 2025-01-29 08:15:34 +00:00