Open srid opened 2 weeks ago
nixos-unified doesn’t have outputs.homeConfigurations
, instead it has outputs.legacyPackages.<system>.homeConfigurations
. But we skip evaluating legacyPackages
, see the comment in https://github.com/DeterminateSystems/inspect/blob/7f0275abbdc46b3487ca69e2acd932ce666a03ff/flake.nix#L28-L38
Should nixos-unified
explore exporting outputs.homeConfigurations
and suffix the configuration name with the system name?
Edit: Or define a separate flake output for per-system home configurations?
Should
nixos-unified
explore exportingoutputs.homeConfigurations
If we can get it working, sure (https://github.com/srid/nixos-unified/issues/81). The problem is that unlike nixosSystem
and darwinSystem
, creating a home manager configuration requires pkgs
(see https://github.com/srid/nixos-unified/blob/469a19843f13ed5196ef73154c4c96a1e48cf626/nix/modules/flake-parts/lib.nix#L97) which is why @roberth recommended the use of legacyPackages
.
See https://github.com/nix-community/home-manager/issues/3075#issuecomment-1477155995
suffix the configuration name with the system name?
We can do this (as shown below), but it would be hacky. Best to solve it properly https://github.com/nix-community/home-manager/issues/3075
https://github.com/juspay/nix-dev-home/actions/runs/11116254613/job/30886199647