srid / nixos-unified

Unify NixOS + nix-darwin + home-manager configuration in a single flake, while providing a consistent interface at DX and UX level.
https://nixos-unified.org
MIT License
214 stars 21 forks source link

Automatically pass `--accept-flake-config` during `home-manager switch` or the like? #66

Open srid opened 1 month ago

srid commented 1 month ago

Notice that the top-level nix's arguments are not passed to the home-manager command (assuming it can even support it). But we basically want the cache config to propagate to inner commands, preventing the need to prompt the user unnecessarily.

image
srid commented 1 month ago

Sadly, home-manager bash script uses nix-build which doesn't recognize flake options:

image