Commit graph

7481 commits

Author SHA1 Message Date
Pablo Ovelleiro Corral
796556ce8d Add release notes 2025-03-23 12:51:58 +01:00
Acid Bong
67e9d0ab57
nixos/release-notes: point nixos-rebuild build-image to the right manual (#392306) 2025-03-23 14:45:35 +05:30
Joel Koen
e51ab12e17
nixos/geoclue2: set default location service to beaconDB 2025-03-21 22:43:25 +10:00
nixpkgs-ci[bot]
529326e679
Merge staging-next into staging 2025-03-21 12:06:31 +00:00
nixpkgs-ci[bot]
8fa05d5ca4
Merge master into staging-next 2025-03-21 12:05:59 +00:00
Arian van Putten
b684e9c6d6
fluent-bit: link against Nix dependencies, fix Darwin builds, and add NixOS module (#365493) 2025-03-21 11:39:18 +00:00
Maximilian Bosch
a1dfaf51e2
nixos/test-driver: integrate Python unittest assertions
Replaces / Closes #345948

I tried to integrate `pytest` assertions because I like the reporting,
but I only managed to get the very basic thing and even that was messing
around a lot with its internals.

The approach in #345948 shifts too much maintenance effort to us, so
it's not really desirable either.

After discussing with Benoit on Ocean Sprint about this, we decided that
it's probably the best compromise to integrate `unittest`: it also
provides good diffs when needed, but the downside is that existing tests
don't benefit from it.

This patch essentially does the following things:

* Add a new global `t` that is an instance of a `unittest.TestCase`
  class. I decided to just go for `t` given that e.g.
  `tester.assertEqual` (or any other longer name) seems quite verbose.

* Use a special class for errors that get special treatment:
  * The traceback is minimized to only include frames from the
    testScript: in this case I don't really care about anything else and
    IMHO that's just visual noise.

    This is not the case for other exceptions since these may indicate a
    bug and then people should be able to send the full traceback to the
    maintainers.
  * Display the error, but with `!!!` as prefix to make sure it's
    easier to spot in between other logs.

This looks e.g. like

    !!! Traceback (most recent call last):
    !!!   File "<string>", line 7, in <module>
    !!!     foo()
    !!!   File "<string>", line 5, in foo
    !!!     t.assertEqual({"foo":[1,2,{"foo":"bar"}]},{"foo":[1,2,{"bar":"foo"}],"bar":[1,2,3,4,"foo"]})
    !!!
    !!! NixOSAssertionError: {'foo': [1, 2, {'foo': 'bar'}]} != {'foo': [1, 2, {'bar': 'foo'}], 'bar': [1, 2, 3, 4, 'foo']}
    !!! - {'foo': [1, 2, {'foo': 'bar'}]}
    !!! + {'bar': [1, 2, 3, 4, 'foo'], 'foo': [1, 2, {'bar': 'foo'}]}
    cleanup
    kill machine (pid 9)
    qemu-system-x86_64: terminating on signal 15 from pid 6 (/nix/store/wz0j2zi02rvnjiz37nn28h3gfdq61svz-python3-3.12.9/bin/python3.12)
    kill vlan (pid 7)
    (finished: cleanup, in 0.00 seconds)

Co-authored-by: bew <bew@users.noreply.github.com>
2025-03-20 12:30:58 +00:00
Robert Rose
cd10f9a874 nixos/keycloak: add realmFiles option
Add an option to import Keycloak realms during
startup from exported realm files.
2025-03-20 12:07:38 +01:00
K900
85b2817da5 Merge remote-tracking branch 'origin/staging-next' into staging 2025-03-20 13:14:18 +03:00
K900
6a900ee562 Merge remote-tracking branch 'origin/master' into staging-next 2025-03-20 09:08:18 +03:00
nixpkgs-ci[bot]
47fbdfd4fc
Merge staging-next into staging 2025-03-20 00:16:05 +00:00
nixpkgs-ci[bot]
4733649a15
Merge master into staging-next 2025-03-20 00:15:20 +00:00
Jeremy Fleischman
9c02a1e422
services/cloudflare-dyndns: require that apiTokenFile be an api token
Previously, this option was supposed to be a file of the form
`CLOUDFLARE_API_TOKEN=...`, which has a few problems:

- That's not an api token. It's an env file fit for passing to systemd's
  `EnvironmentFile` option. The user could typo the variable name, or
  intentionally/unintentionally include unrelated environment variables.
- It's not how secret files usually work in NixOS. Secret files are
  usually just the secret, and don't leak details about how the secret
  is passed to the service.
- This increases friction for people switching between cloudflare dyndns
  services, such as `services.cloudflare-dyndns` and
  `services.cfdyndns`, which both have a `apiToken` option, but (before
  this change) with different semantics.
2025-03-19 18:19:29 -05:00
commiterate
3366b27e59 fluent-bit: link against Nix dependencies, fix Darwin builds, and add NixOS module 2025-03-19 18:48:46 -04:00
Felix Bühler
30358ab7a7
formats.lua: init; types.luaInline: init (#390120) 2025-03-19 23:18:05 +01:00
Matt Sturgeon
2611d5bd70
formats.lua: init
Add a lua format, based on `lib.generators.toLua`.
2025-03-19 21:18:49 +00:00
nixpkgs-ci[bot]
3a7baab73a
Merge staging-next into staging 2025-03-19 18:05:59 +00:00
nixpkgs-ci[bot]
9a9855f387
Merge master into staging-next 2025-03-19 18:05:30 +00:00
Adam C. Stephens
476618066b
nixos/firezone: init module and packages (#374647) 2025-03-19 13:50:47 -04:00
nixpkgs-ci[bot]
cd31c04e18
Merge staging-next into staging 2025-03-19 00:15:59 +00:00
nixpkgs-ci[bot]
1d4e3667f7
Merge master into staging-next 2025-03-19 00:15:26 +00:00
Will Fancher
720efefbc0
Revert "nixos/doc: recommend usage of --use-remote-sudo when switching configurations" (#390935) 2025-03-18 15:54:33 -04:00
nixpkgs-ci[bot]
e8240407b0
Merge staging-next into staging 2025-03-18 18:05:35 +00:00
nixpkgs-ci[bot]
0bb96173bd
Merge master into staging-next 2025-03-18 18:05:06 +00:00
Nicolas Mémeint
7407020674 authelia: 4.38.19 -> 4.39.1 2025-03-18 18:23:43 +01:00
Fernando Rodrigues
c7f394d214
Revert "nixos/doc: recommend usage of --use-remote-sudo when switching configurations" 2025-03-18 11:34:07 +00:00
charludo
3e3b774732
nixos/pinchflat: init 2025-03-18 12:24:01 +01:00
Neyts Zupan
75773b77be paretosecurity: init at 0.0.86, nixos/paretosecurity: init 2025-03-18 11:09:14 +00:00
oddlama
6c888f4911
nixos/firezone: init modules 2025-03-17 20:21:00 +01:00
nixpkgs-ci[bot]
dcc32e006f
Merge staging-next into staging 2025-03-17 18:05:40 +00:00
nixpkgs-ci[bot]
f2e2b1814d
Merge master into staging-next 2025-03-17 18:05:11 +00:00
Sandro
b96c9e3a68
gokapi: init at 1.9.6 (#372911) 2025-03-17 16:12:38 +01:00
nixpkgs-ci[bot]
75c8678243
Merge staging-next into staging 2025-03-17 00:16:57 +00:00
nixpkgs-ci[bot]
4761072df5
Merge master into staging-next 2025-03-17 00:16:22 +00:00
Arne Keller
a7125fb4f6
confluent-cli: 3.60.0 -> 4.16.0 (#376796) 2025-03-16 23:11:31 +01:00
Pol Dellaiera
c8a823d40b nixos/litellm: init 2025-03-16 20:49:22 +01:00
Pol Dellaiera
79e95661a6
orthanc: init at 1.12.6, nixos/orthanc: init (#385329) 2025-03-16 20:47:37 +01:00
Cryolitia PukNgae
c33e419dd1
nixos/xpad-noone: init 2025-03-17 03:44:58 +08:00
nixpkgs-ci[bot]
76fed55d6a
Merge staging-next into staging 2025-03-16 18:04:41 +00:00
nixpkgs-ci[bot]
dbe56e9776
Merge master into staging-next 2025-03-16 18:04:12 +00:00
Arne Keller
d7a2a10a40
graylog-5_1: remove (#358780) 2025-03-16 15:45:23 +01:00
Darragh Elliott
46666bba62 gokapi: add module, test, release docs
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2025-03-16 14:41:28 +00:00
Philip Taron
f4dd3ba6e0
systemd: make systemd-ssh-generator work (#372979) 2025-03-15 21:59:59 -07:00
Pol Dellaiera
933f835219 nixos/orthanc: init 2025-03-15 22:45:44 +01:00
Marie Ramlow
a0962df902 doc/rl-2505: document systemd-ssh-generator changes 2025-03-15 20:15:44 +01:00
nixpkgs-ci[bot]
890b967419
Merge master into staging-next 2025-03-15 12:05:14 +00:00
Matt Sturgeon
c347d605c9
lib.types: add luaInline
Represents inline lua as expected by `lib.generators.toLua`, for
embedding raw lua expressions within structurally generated lua.
2025-03-15 10:29:28 +00:00
Marcus Ramberg
d07ebbab9b
nixos/k3s: add autoDeployCharts option and use systemd-tmpfiles for content activation (#374017) 2025-03-15 11:26:43 +01:00
nixpkgs-ci[bot]
e24f567a68
Merge master into staging-next 2025-03-15 09:53:30 +00:00
Benjamin Sparks
f752f7d5d2 nixos/release-notes: uswgi does not support Python 2 plugins 2025-03-15 00:26:02 +01:00