!hArdrCQjixoTCqafnk:matrix.org

Nix Hour

167 Members
Discussions and notifications for the weekly Nix Hour, a Nix Q&A Lecture by Tweag: https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-q-a-lecture-by-tweag/2276735 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
26 Apr 2024
@ibizaman:matrix.orgibizaman joined the room.15:52:28
@picog:matrix.orgPico

The part that confused me but cleared up now

type = types.submodule ./vpn.nix

So the manual does say:
https://nixos.org/manual/nixos/unstable/#sec-option-types-submodule

types.submodule o

    A set of sub options o. o can be an attribute set, a function returning an attribute set, or a path to a file containing such a value

So that's why passing a path is fine, I suspect the vpn.nix could contain either a function like it did in the example or just an attribute set.
I tried to figure it out from reading the source but that's bit hard for my nix level.

17:03:24
27 Apr 2024
@nebunebu:matrix.orgnebu joined the room.20:19:19
28 Apr 2024
@buf:matrix.orgbuf joined the room.02:55:49

Show newer messages


Back to Room ListRoom Version: 10