divnix / hive

The secretly open NixOS-Society
The Unlicense
133 stars 24 forks source link

`.system` typo vs `.config.system.build.toplevel` #37

Open blaggacao opened 2 weeks ago

blaggacao commented 2 weeks ago

Is .system a typo for .config.system.build.toplevel here? Or am I missing something that would alias to the shorter version?

_Originally posted by @Hajitorus in https://github.com/divnix/hive/pull/35#discussion_r1830372841_

Sntx626 commented 2 weeks ago

For me this evaluates to:

bin=$(nix build .#nixosConfigurations.home-iovis.system --no-link --print-out-paths)/sw/bin

However this present the following two problems:

  1. .system does not exists - in contrast to .config.system.build.toplevel, which does.
  2. home-iovis is not a flake output, since I changed the renamer for my nixosConfigurations:
nixosConfigurations = (hive.collect // { renamer = _: target: target; }) self "nixosConfigurations";

Number 1. should be an easy fix, since this indeed seems to be a typo.

I don't know how much extra work it would be to get the real output name from the fragmentRelPath to solve 2....

Sntx626 commented 2 weeks ago

On an offhand note, I don't think we need to recreate the bin environment from the target system. Everything we might need, we can just add from pkgs for each action respectively.

Or am I missing something critical?