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

Can't access custom nixos configuration attr #61

Open
Radvendii opened this issue Mar 22, 2023 · 0 comments
Open

Can't access custom nixos configuration attr #61

Radvendii opened this issue Mar 22, 2023 · 0 comments

Comments

@Radvendii
Copy link
Contributor

Most nix commands and tools seem to have a default search path that they look at, including nixos-shell. For example
nixos-shell --flake .#foo searches at .#nixosConfigurations.foo first.

However, most nix commands and tools will fall back to searching at the top level if that fails. So if I do
nix build .#my.custom.path.foo it will first try to find packages.<system>.my.custom.path.foo, but if that fails it will look for plain my.custom.path.foo before giving up.

nixos-shell does not do this, it requires the configurations to be at specific paths.

I'm thinking this might be because nixos-shell takes two kinds of inputs: configurations and modules, and it can only tell the difference by the path. One option is to have a default (I would guess configuration). But also this could be specified at the command line with a --module or --configuration flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant