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

fix(flake): explicitly requires flake parts input #3

Conversation

cameronraysmith
Copy link

Following up on ALT-F4-LLC/kickstart.nix#97 (comment), this flake contains the same issue described in ALT-F4-LLC/kickstart.nix#96 . This PR resolves the equivalent issue for https://github.com/Sironheart/nix-config .

Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
@cameronraysmith
Copy link
Author

cameronraysmith commented Feb 23, 2025

The root cause resulting in failure to discover the inability to use the config elsewhere without access to the same flake-registry could be fixed by updating

nix = {
extraOptions = ''
experimental-features = nix-command flakes auto-allocate-uids
'';
settings.trusted-users = ["root" "steffen"];
};

to something like

   nix = { 
     extraOptions = '' 
       experimental-features = nix-command flakes auto-allocate-uids 
     ''; 
     settings.flake-registry = builtins.toFile "null-flake-registry.json" ''{"flakes":[],"version":2}'';
     settings.trusted-users = ["root" "steffen"]; 
   }; 

Because of the general confusion and functional impurity the system flake-registry introduces, some recommend adding

nix.settings.flake-registry = builtins.toFile "null-flake-registry.json" ''{"flakes":[],"version":2}'';
to the nixos/nix-darwin/home-manager configuration of nix to avoid creating this potential for confusion.

See also ALT-F4-LLC/kickstart.nix#96 (comment) for an explanation pertaining to ALT-F4-LLC/kickstart.nix#97 (comment) where you pointed out your confusion.

@cameronraysmith
Copy link
Author

@cameronraysmith
Copy link
Author

Since this is your personal config, this was primarily to help respond to your question in ALT-F4-LLC/kickstart.nix#97 (comment). I will thus close this assuming you might like to consider making these changes yourself. Feel free to reopen if you'd prefer to review and/or merge.

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

Successfully merging this pull request may close these issues.

1 participant