6 ms·
I don't; my config lives in ~/flake, and I run `nixos-rebuild ... --flake ~/flake` whenever I update it.
by cole-h 4y ago
I don't; my config lives in ~/flake, and I run `nixos-rebuild ... --flake ~/flake` whenever I update it.
- choward 4y agoYou don't have to specify the nixosConfiguration name (e.g ~/flake#my-configuration)? Do you just name it "default" or something for that to work? I've never tried that.
- Macha 4y agoYou name it the same as your current system's hostname.
- choward 4y agoOh, I had no idea. I was actually already doing that. Guess I was just being extra verbose on the command line.
- cole-h 4y agoExactly as Macha said, if you name the attribute `nixosConfiguration.<hostname>`, `nixos-rebuild` will look for that attribute implicitly; you can still specify another configuration if you're e.g. in a VM or a live image.