this post was submitted on 03 Oct 2023
15 points (94.1% liked)
nixos
1267 readers
1 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Congrats! It took me three months to get everything running the way I wanted. Now I run a bunch of machines off of a single flake, managing family and friend's machines too. Next is moving my server over to nixos. Read through the wiki and site, get on the nixos discord or matrix site, ask questions, use the discourse, and when you feel confident
nixos-rebuild switch --flake .#
!The
--flake .#
is redundant, just FYI ;)There's a difference. Without it, it loads the flake from /etc/nixos/flake.nix instead of the current directory. (What is redundant is the
#
, you can just write--flake .
)Yeah, true, valid point. Guess I never thoughg about rebuilding from anywhere not
/etc/nixos
FYI you can do:
nixos-rebuild switch --flake git+https://yourgithost.com/yourrepo
Also, depending on how the flake is setup, you might also have to add
.#hostname
, at least for the initial run. After that.#
can evaluate which host is being rebuilt.@[email protected] @ck_ haha, on lemmy, I was trying to add
.#\
, but\
kept getting deleted. Markdown??