| 11 Jan 2025 |
| pandapip1 joined the room. | 21:20:48 |
| 15 Jan 2025 |
| SomeoneSerge (utc+3) changed their display name from SomeoneSerge (utc+3) to SomeoneSerge. | 19:01:46 |
Matt Sturgeon | I was just writing some assertions, and wanted to show the option defs for an attr-of an option, isolated using lib.modules.mergeAttrDefinitionsWithPrio.
However, mergeAttrDefinitionsWithPrio only includes the value and highestPrio, with no access to files, definitions, definitionsWithLocations, etc.
I came up with a proof of concept that seems to mostly work, however it's failing nix-build lib/tests/release.nix so is probably not lazy enough?
My question: is there an intended way to print definitions/locations for an attr-of-an-option and, if not, how could I improve my patch to make it PR-ready? Or is there an alternative approach I could take?
In this specific scenario, I'm wanting to showDefs a _module.args.* attr, but the concept could apply to any attrsOf or lazyAttrsOf option.
| 21:37:21 |
| 17 Jan 2025 |
| chintuchamar joined the room. | 04:39:17 |
| 27 Jan 2025 |
| brisingr05 joined the room. | 02:49:44 |
| 30 Jan 2025 |
| sarcasticadmin changed their display name from sarcasticadmin to Rob - KM6LBU. | 03:01:40 |
| sarcasticadmin changed their display name from Rob - KM6LBU to sarcasticadmin. | 03:02:55 |
| laurynasp joined the room. | 08:55:51 |
| 31 Jan 2025 |
| cafkafk 🏳️⚧️ changed their profile picture. | 05:06:12 |
| SomeoneSerge (utc+3) changed their display name from SomeoneSerge to SomeoneSerge (Bruxelles). | 19:35:24 |
ibizaman | Just stumbled into this today:
The option `nodes.server.nixpkgs.overlays' is defined multiple times while it's expected to be unique.
nixpkgs.overlays is set to read-only
Is there any reason for this? Why isn't the option just being merged?
| 20:12:35 |
ibizaman | * Just stumbled into this today:
The option `nodes.server.nixpkgs.overlays' is defined multiple times while it's expected to be unique.
nixpkgs.overlays is set to read-only
Is there any reason for this?
| 20:15:05 |
ibizaman | * Just stumbled into this today:
The option `nodes.server.nixpkgs.overlays' is defined multiple times while it's expected to be unique.
nixpkgs.overlays is set to read-only
Is there any reason for this? Why must it be read-only?
| 20:17:18 |
Matt Sturgeon | Where does the nodes.server option set come from? I can't see it on the NixOS option search | 20:23:22 |
ibizaman | Ah my bad, it's in a NixOS VM test. | 20:26:15 |
ibizaman | * Ah sorry for the confusion, it's in a NixOS VM test. | 20:26:28 |
ibizaman | It looks like so:
pkgs.testers.runNixOSTest {
nodes.server = {
imports = [
({ config, ... }: {
config = {
nixpkgs.overlays = [
(final: prev: {
grocy = prev.grocy.overrideAttrs (f: p: {
patches = [
../../patches/grocy.patch
];
});
})
];
};
})
];
};
};
| 20:29:06 |
ibizaman | * It looks like so:
pkgs.testers.runNixOSTest {
nodes.server = {
imports = [
({ config, ... }: {
config = {
nixpkgs.overlays = [
(final: prev: {
grocy = prev.grocy.overrideAttrs (f: p: {
patches = [
../../patches/grocy.patch
];
});
})
];
};
})
];
};
};
| 20:29:17 |
| 3 Feb 2025 |
| Lorenz Leutgeb changed their display name from Lorenz Leutgeb 📞6343 to Lorenz Leutgeb. | 08:53:22 |
nbp | This sounds wrong on 3 aspects: 1. it is not supposed to be unique. 2. it is not supposed to be read-only. 3. It cannot be unique and read-only.
https://github.com/NixOS/nixpkgs/blob/2dda8c252f59deeba5ef662a7bfc055e43639a55/nixos/lib/testing/nodes.nix#L129-L138 | 10:32:02 |
nbp | https://github.com/NixOS/nixpkgs/blob/2dda8c252f59deeba5ef662a7bfc055e43639a55/nixos/modules/misc/nixpkgs/read-only.nix#L38 | 10:33:13 |
| SomeoneSerge (utc+3) changed their display name from SomeoneSerge (Bruxelles) to SomeoneSerge (Gand St. Pieters). | 13:41:17 |
| 6 Feb 2025 |
| robsliwi joined the room. | 09:01:01 |
| SomeoneSerge (utc+3) changed their display name from SomeoneSerge (Gand St. Pieters) to SomeoneSerge (UTC+U[-12,12]). | 17:51:18 |
| 7 Feb 2025 |
| @sleepymonad:matrix.org left the room. | 08:45:56 |
| terrorjack left the room. | 22:28:06 |
| 10 Feb 2025 |
| spacekitteh joined the room. | 03:54:14 |
| 15 Feb 2025 |
| BenjB83 joined the room. | 10:16:21 |
| BenjB83 changed their display name from Benjamín Buske to BenjB83. | 10:43:06 |
| 16 Feb 2025 |
| KristijanZic joined the room. | 01:04:13 |