!UUqahLbShAYkkrXmKs:matrix.org

DevOS

32 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
20 Oct 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @mars:jupiterbroadcasting.com
nix flake info and nix flake show seem not to work on any of the examples in the fup repo anymore, with a message about the relative path being outside the parent's store path (it is not)
Looks like ../ has been generally forbidden on inputs. I know that issue, but haven't been able to fully trace it down upstream.
04:18:44
@blaggacao:matrix.orgDavid Arnold (blaggacao)(even on subflakes, which are not outside of the store path as you correctly realized)04:19:13
@blaggacao:matrix.orgDavid Arnold (blaggacao)* (even on subflakes, where nothing is outside of the store path as you correctly realized)04:19:34
@blaggacao:matrix.orgDavid Arnold (blaggacao) (wait, you say fup repo) 04:20:58
@mars:jupiterbroadcasting.commarsmhm supposedly it's been fixed now, though04:22:27
@blaggacao:matrix.orgDavid Arnold (blaggacao) mars I think the level of alignment between module systems that you are aming for is not really feasible. Think of each module system of jsonschema of some sort of configuration endpoint that you'd like to reach (a data structure). 04:22:45
@mars:jupiterbroadcasting.commarspretty sure it's a Nix bug. 1 sec04:23:09
@blaggacao:matrix.orgDavid Arnold (blaggacao) The follows fix introduced, iirc. 04:23:34
@mars:jupiterbroadcasting.commarsit's supposed to be supported, as of a couple weeks ago: https://github.com/NixOS/nix/issues/397804:24:43
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/NixOS/nix/pull/464104:24:44
@mars:jupiterbroadcasting.commarsyeah04:24:54
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @mars:jupiterbroadcasting.com
it's supposed to be supported, as of a couple weeks ago: https://github.com/NixOS/nix/issues/3978
Interesting!
04:26:24
@mars:jupiterbroadcasting.commars
In reply to @blaggacao:matrix.org
mars I think the level of alignment between module systems that you are aming for is not really feasible. Think of each module system of jsonschema of some sort of configuration endpoint that you'd like to reach (a data structure).

yeah

some modules in Nix-Darwin, though, are just copied and pasted from NixOS, at least initially

that's the kind of case I had in mind

04:26:52
@blaggacao:matrix.orgDavid Arnold (blaggacao)The endpoint in nix is always systemd, and in darwin would never be? BUT Michael Raskin has worked on iirc RFC72 to explore solutions.04:27:54
@mars:jupiterbroadcasting.commarsbut yeah really the way to have cross-platform modules would be with a single, cross-platform module system, which is a bigger and different kind of effort04:27:57
@blaggacao:matrix.orgDavid Arnold (blaggacao)

The gist would be to separate:

  • Config database
  • Systemd Generation
04:28:33
@blaggacao:matrix.orgDavid Arnold (blaggacao)* The gist would be to separate: - Config database - Systemd Service Generation04:28:45
@blaggacao:matrix.orgDavid Arnold (blaggacao)* The 80% gist would be to separate: - Config database - Systemd Service Generation04:29:19
@blaggacao:matrix.orgDavid Arnold (blaggacao)* The 80% gist would be to separate: - Config database - Systemd Service Rendering04:29:39
@mars:jupiterbroadcasting.commars

mhm

but in the meantime it makes sense for devos and digga to support exporting modules for a variety of NixOS-like module systems

04:30:04
@blaggacao:matrix.orgDavid Arnold (blaggacao)RFC7804:31:10
@mars:jupiterbroadcasting.commars

this one

https://github.com/NixOS/rfcs/pull/78

04:33:05
@mars:jupiterbroadcasting.commarsthere are so many different merge operations in the Nix ecosystem there's module merging, various override mechanisms, overlays Nickel is apparently going to build one into its language but the details aren't fully settled given that it will mean at least one more kind of merge to learn, what's the goal of your new merge DSL?04:36:10
@mars:jupiterbroadcasting.commars

I also wonder if really different semantics are needed to solve the config attribute provenance issue

the Tweag guys working on Nickle seem to think not, I think they've said they can get that kind of tracing working for NixOS-like module merging

04:38:29
@mars:jupiterbroadcasting.commars* I also wonder if different semantics really are needed to solve the config attribute provenance issue the Tweag guys working on Nickle seem to think not, I think they've said they can get that kind of tracing working for NixOS-like module merging04:38:45
@mars:jupiterbroadcasting.commars* I also wonder if different semantics really are needed to solve the config attribute provenance issue the Tweag guys working on Nickel seem to think not, I think they've said they can get that kind of tracing working for NixOS-like module merging04:38:57
@blaggacao:matrix.orgDavid Arnold (blaggacao) Main goal is monotonicity of the merge operation. Combined with hypothetical builtins.jsonSchemaValidate, we have all we need to manage base/dev/staging/prod envs. 04:43:18
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Main goal is monotonicity (-> mental simplicity) of the merge operation. Combined with hypothetical `builtins.jsonSchemaValidate`, we have all we need to manage `base`/`dev`/`staging`/`prod` envs.04:43:38
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Main goal is monotonicity (-> mental simplicity) of the merge operation. Combined with hypothetical `builtins.jsonSchemaValidate` for pre-flight checks, we have all we need to manage `base`/`dev`/`staging`/`prod` envs.04:43:59
@vherrmann:shmerver.de@vherrmann:shmerver.de changed their display name from Tosixon to Tisoxin.18:05:20

Show newer messages


Back to Room ListRoom Version: 6