hive icon indicating copy to clipboard operation
hive copied to clipboard

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

Open blaggacao opened this issue 1 year ago • 2 comments

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

blaggacao avatar Nov 10 '24 22:11 blaggacao

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 avatar Nov 11 '24 01:11 Sntx626

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?

Sntx626 avatar Nov 11 '24 01:11 Sntx626