Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
conception
on Aug 12, 2023
|
parent
|
context
|
favorite
| on:
What's your go to Nix/NixOS pitch?
What are the two commands for further reading? Not familiar with Nix.
Aerbil313
on Aug 12, 2023
[–]
(Not OP) cp to copy the /etc/nixos/configuration.nix file, and nixos-rebuild to build the system defined in the file on the new machine.
viraptor
on Aug 12, 2023
|
parent
[–]
Or if you're sharing configuration, it's most likely a "git pull" rather than "cp".
cfcosta
on Aug 12, 2023
|
root
|
parent
[–]
Yes, to be specific it's a git clone and a command to apply the flake.
yjftsjthsd-h
on Aug 12, 2023
|
root
|
parent
[–]
If you're using a flake, can't you apply itfrom git in a single command?
cfcosta
on Aug 12, 2023
|
root
|
parent
[–]
Actually, you can! I always want to clone it either way, so I just do it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: