Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

om show does not show homeConfigurations #288

Open
Tracked by #162
srid opened this issue Oct 1, 2024 · 4 comments
Open
Tracked by #162

om show does not show homeConfigurations #288

srid opened this issue Oct 1, 2024 · 4 comments
Labels
good first issue Good for newcomers

Comments

@srid
Copy link
Member

srid commented Oct 1, 2024

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

image
@srid srid added the good first issue Good for newcomers label Oct 1, 2024
@shivaraj-bh
Copy link
Member

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
Copy link
Member

shivaraj-bh commented Oct 4, 2024

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
Copy link
Member Author

srid commented Oct 4, 2024

Should nixos-unified explore exporting outputs.homeConfigurations

If we can get it working, sure (srid/nixos-unified#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 nix-community/home-manager#3075 (comment)

@srid
Copy link
Member Author

srid commented Oct 5, 2024

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 nix-community/home-manager#3075

image

@shivaraj-bh shivaraj-bh mentioned this issue Oct 7, 2024
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants