Jump to content

Cheatsheet: Difference between revisions

34 bytes removed ,  1 February 2021
m
→‎A NixOS cheat sheet and comparison to Ubuntu: Bold table headlines; sort out some mess at "Package management"
imported>Dschrempf
m (Reduce headline)
imported>Dschrempf
m (→‎A NixOS cheat sheet and comparison to Ubuntu: Bold table headlines; sort out some mess at "Package management")
Line 18: Line 18:
!|NixOS (user) and Nix in general
!|NixOS (user) and Nix in general
|-
|-
| colspan="5" style="text-align:center"| Basic concepts
| colspan="5" style="text-align:center"| '''Basic concepts'''
|-
|-
|
|
Line 57: Line 57:
|Technically called "derivations" but everyone calls them packages.
|Technically called "derivations" but everyone calls them packages.
|-
|-
| colspan="5" style="text-align:center"| Package management
| colspan="5" style="text-align:center"| '''Package management'''
|-
|-
|-
|-
Line 178: Line 178:
|
|
|-
|-
| colspan="5" style="text-align:center"| Package configuration
| colspan="5" style="text-align:center"| '''Package configuration'''
|-
|-
|Configure a package
|Configure a package
|<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
|-
|List package options
|
|
|
|-
|-
|Global package configuration
|Global package configuration
|Modify configuration file in /etc/
|Modify configuration file in /etc/
|Edit /etc/nixos/configuration.nix
|
|
|
|-
| colspan="5" style="text-align:center"| Package configuration
|-
|-
|Find packages
|Find packages
Line 220: Line 213:
|(same)
|(same)
|-
|-
| colspan="5" style="text-align:center"| Services
| colspan="5" style="text-align:center"| '''Services'''
|-
|-
|Start a service
|Start a service
Line 257: Line 250:
|
|
|-
|-
| colspan="5" style="text-align:center"| Misc tasks
| colspan="5" style="text-align:center"| '''Misc tasks'''
|-
|-
|List binaries
|List binaries
Anonymous user