-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Use flake.nix by default if it exists #721
Comments
The default location for non flake configuration is |
I was thinking that because |
Although edit: it's XDG_CONFIG_HOME, not XDG_HOME |
Furthermore, anything in |
The current non-flakes default is actually macOS has never trampled on non-system-software (That said I personally keep my flake in |
I've created a PR that uses ~/.config/darwin: #874 |
Any updates on this? |
So that we're able to do `darwin-rebuild --flake .` since there's no default flake path at the moment. There's however a PR that'll set nix-darwin default flake path to `~/.config/nix-darwin` (or `/etc/nix-darwin`). REF: - LnL7/nix-darwin#721 - LnL7/nix-darwin#741
Both
nixos-rebuild switch
andhome-manager switch
seem to allow using a flake without passing any arguments if aflake.nix
file exists in their respective directories -/etc/nixos
and~/.config/home-manager
respectively. They both seem to follow symlinks, using the actual directory containingflake.nix
rather than simply those default directories.My proposal is that darwin-rebuild should use a similar behavior - if
flake.nix
exists in a specific default location (though I'm not sure what that location would be), it would use that without any additional arguments being passed.The text was updated successfully, but these errors were encountered: