Cheatsheet: Difference between revisions

imported>Dschrempf
m →‎A NixOS cheat sheet and comparison to Ubuntu: Bold table headlines; sort out some mess at "Package management"
imported>Dschrempf
m Bolden todo items
Line 48: Line 48:
|As soon as the command runs. Commands are not atomic and can leave your machine in a bad state.
|As soon as the command runs. Commands are not atomic and can leave your machine in a bad state.
|Most of the time you modify the configuration file and apply changes with nixos-rebuild switch
|Most of the time you modify the configuration file and apply changes with nixos-rebuild switch
TODO How does one get nixos to do all the work for a switch and separate out the actual switching from fetching/building?
'''TODO''': How does one get nixos to do all the work for a switch and separate out the actual switching from fetching/building?
|Most of the time you apply changes with nix-env -i all
|Most of the time you apply changes with nix-env -i all
TODO How does one get nix to do all the work for a switch and separate out the actual switching from fetching/building?
'''TODO''': How does one get nix to do all the work for a switch and separate out the actual switching from fetching/building?
|-
|-
|Packages
|Packages
Line 183: Line 183:
|<syntaxhighlight lang="console">$ sudo dpkg-reconfigure <package></syntaxhighlight>
|<syntaxhighlight lang="console">$ sudo dpkg-reconfigure <package></syntaxhighlight>
|Edit /etc/nixos/configuration.nix
|Edit /etc/nixos/configuration.nix
|Edit ~/.nixpkgs/config.nix TODO More details about how to edit
|Edit ~/.nixpkgs/config.nix; '''TODO''': More details about how to edit
|-
|-
|Global package configuration
|Global package configuration