!wfudwzqQUiJYJnqfSY:nixos.org

NixOS Module System

152 Members
31 Servers

Load older messages


SenderMessageTime
22 Dec 2024
@allrealmsoflife:matrix.orgallrealmsoflife joined the room.20:27:50
26 Dec 2024
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb to Lorenz Leutgeb (📞6343).19:33:43
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb (📞6343) to Lorenz Leutgeb 📞6343.19:36:58
27 Dec 2024
@nazarewk:matrix.orgkdn changed their display name from nazarewk to kdn.12:38:41
31 Dec 2024
@getchoo:matrix.orggetchoo changed their profile picture.12:38:57
1 Jan 2025
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:09
@jopejoe1:matrix.orgjopejoe1 (4094@39c3) changed their display name from jopejoe1 [4094] to jopejoe1.23:30:10
3 Jan 2025
@ibizaman:matrix.orgibizamanFollowing up on my message about contracts from a while ago, I finally had the motivation and time to create a pre-RFC about it :) https://discourse.nixos.org/t/pre-rfc-decouple-services-using-structured-typing/5825723:19:16
@ibizaman:matrix.orgibizaman * Following up on my message about contracts from a little while ago, I finally had the motivation and time to create a pre-RFC about it :) https://discourse.nixos.org/t/pre-rfc-decouple-services-using-structured-typing/5825723:19:47
6 Jan 2025
@nbp:mozilla.orgnbpThank you, while I have some objections about some of the details, I do appreciate a lot the effort in making this possible. I tried to provide a short explanations of my concerns on discord.11:58:49
@nbp:mozilla.orgnbp* Thank you, while I have some objections about some of the details, I do appreciate a lot the effort in making this possible. I tried to provide a short explanations of my concerns on discourse.11:59:20
11 Jan 2025
@orzklv:matrix.org@orzklv:matrix.org left the room.04:07:52
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.04:42:56
@pandapip1:matrix.orgpandapip1 joined the room.21:20:48
15 Jan 2025
@ss:someonex.netSomeoneSerge (UTC+3) changed their display name from SomeoneSerge (utc+3) to SomeoneSerge.19:01:46
@mattsturg:matrix.orgMatt 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:matrix.orgchintuchamar joined the room.04:39:17
27 Jan 2025
@brisingr05:matrix.orgBrisingr joined the room.02:49:44
30 Jan 2025
@sarcasticadmin:matrix.orgsarcasticadmin changed their display name from sarcasticadmin to Rob - KM6LBU.03:01:40
@sarcasticadmin:matrix.orgsarcasticadmin changed their display name from Rob - KM6LBU to sarcasticadmin.03:02:55
@laurynasp:matrix.orglaurynasp joined the room.08:55:51
31 Jan 2025
@cafkafk:fem.gg@cafkafk:fem.gg changed their profile picture.05:06:12
@ss:someonex.netSomeoneSerge (UTC+3) changed their display name from SomeoneSerge to SomeoneSerge (Bruxelles).19:35:24
@ibizaman:matrix.orgibizaman

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:matrix.orgibizaman *

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:matrix.orgibizaman *

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
@mattsturg:matrix.orgMatt Sturgeon Where does the nodes.server option set come from? I can't see it on the NixOS option search 20:23:22
@ibizaman:matrix.orgibizamanAh my bad, it's in a NixOS VM test.20:26:15
@ibizaman:matrix.orgibizaman* Ah sorry for the confusion, it's in a NixOS VM test.20:26:28
@ibizaman:matrix.orgibizaman

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

Show newer messages


Back to Room ListRoom Version: 10