juspay / omnix

🚧 A Nix companion to improve developer experience
https://omnix.page
GNU Affero General Public License v3.0
87 stars 6 forks source link

`om show` does not show `homeConfigurations` #288

Open srid opened 2 weeks ago

srid commented 2 weeks ago

https://github.com/juspay/nix-dev-home/actions/runs/11116254613/job/30886199647

image
shivaraj-bh commented 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

shivaraj-bh commented 2 weeks ago

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?

srid commented 2 weeks ago

Should nixos-unified explore exporting outputs.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

srid commented 2 weeks ago

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

image