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

lib.nixosSystem not listed #368

Open
katexochen opened this issue Oct 2, 2024 · 1 comment
Open

lib.nixosSystem not listed #368

katexochen opened this issue Oct 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@katexochen
Copy link

What happened
function can't be found via noogle

Steps to Reproduce
https://noogle.dev/q?term=lib.nixosSystem

@katexochen katexochen added the bug Something isn't working label Oct 2, 2024
@hsjobeki
Copy link
Collaborator

hsjobeki commented Oct 13, 2024

This function is a bit complicated though it (was) documented as well.

It doesn't exist in lib of nixpkgs

nix-repl> lib.nixosSystem
error: attribute 'nixosSystem' missing
       at «string»:1:1:
            1| lib.nixosSystem

One can only use it via flakes:

https://github.com/NixOS/nixpkgs/blob/master/flake.nix#L57

inputs.nixpkgs.lib.nixosSystem

Although i think it should be possible to discover this function via noogle, this is a new category of functions, which can be used via flakes exclusively and is not part of the "standard" library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants