News for hackers. Stuff that matters.
Re:Zero to Nix, an unofficial, opinionated, gentle introduct... by cole-h on Monday January 23, 2023 @11:50AM (#34491344)
I don't; my config lives in ~/flake, and I run `nixos-rebuild ... --flake ~/flake` whenever I update it.
Re:Zero to Nix, an unofficial, opinionated, gentle introduct... by choward on Monday January 23, 2023 @02:01PM (#34493343)
You 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.
Re:Zero to Nix, an unofficial, opinionated, gentle introduct... by Macha on Monday January 23, 2023 @02:12PM (#34493494)
You name it the same as your current system's hostname.
Re:Zero to Nix, an unofficial, opinionated, gentle introduct... by choward on Monday January 23, 2023 @04:08PM (#34495045)
Oh, I had no idea. I was actually already doing that. Guess I was just being extra verbose on the command line.
Re:Zero to Nix, an unofficial, opinionated, gentle introduct... by cole-h on Monday January 23, 2023 @02:46PM (#34493939)
Exactly 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.