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

nh darwin: implement #67

Closed
Guanran928 opened this issue Feb 7, 2024 · 4 comments
Closed

nh darwin: implement #67

Guanran928 opened this issue Feb 7, 2024 · 4 comments

Comments

@Guanran928
Copy link

nh os switch currently does not work for nix-darwin.

image

@viperML
Copy link
Owner

viperML commented Feb 7, 2024

nh os is a nixos-rebuild rewrite, doesn't have anything to do with nix-darwin

@viperML viperML changed the title macOS support nh darwin: implement Feb 19, 2024
@SolidRhino
Copy link

This would be a great addition!

@viperML
Copy link
Owner

viperML commented Apr 23, 2024

I don't use macos, so I don't think I'll ever implement this

@viperML viperML closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2024
@ToyVo
Copy link
Contributor

ToyVo commented Apr 26, 2024

I heard about this project a couple days ago, and I decided to take a shot at updating for darwin, I'll make a PR once I'm done for comment, but for reference I'm looking at the darwin-rebuild command https://github.com/LnL7/nix-darwin/blob/master/pkgs/nix-tools/darwin-rebuild.sh

This line that builds flake#nixosConfiguration.hostname.config.system.build.toplevel needs to be switched to flake#darwinConfiguration.hostname.config.system.build.toplevel

Then this line that runs switch-to-configuration, that script doesn't exist on darwin but darwin rebuild runs activate-user then activate within it's result directory


Edit: I am maintaining this fork because viper doesn't want to have the code https://github.com/ToyVo/nh

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 a pull request may close this issue.

4 participants