Cheatsheet: Difference between revisions

Frontear (talk | contribs)
change an unnecessarily complicated example and link to main cross compiling page, which I am going to overhaul.
DoggoBit (talk | contribs)
m propose merge
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== A NixOS cheat sheet and comparison to Ubuntu ==
{{Merge|Nix (command line utilities)}}
[[Ubuntu_vs._NixOS|Ubuntu vs. NixOS]] provides a table mapping of common administrative tasks and their commands in Ubuntu to similar capabilities in NixOS.
 
This cheatsheet is a collection of handy snippets for working with a NixOS system.


== Working with the nix store ==
== Working with the nix store ==
Line 31: Line 32:


=== Add files to the store ===
=== Add files to the store ===
{{Warning|Editing the Nix Store manually may cause undefined behaviour to occur in Nix's database. Avoid making manual changes to the store unless you are absolutely sure you know what you're doing.}}
It is sometimes necessary to add files to the store manually.
It is sometimes necessary to add files to the store manually.
This is particularly the case with packages that cannot be downloaded automatically,
This is particularly the case with packages that cannot be downloaded automatically,