Use colspan for headers instead of hacky workaround, add commented-out infrequently-used commands section
This commit is contained in:
parent
dbc376980a
commit
13d16d639b
2 changed files with 1674 additions and 1754 deletions
3405
cheatsheet.pdf
3405
cheatsheet.pdf
File diff suppressed because it is too large
Load diff
|
|
@ -32,7 +32,7 @@
|
||||||
table.header(
|
table.header(
|
||||||
level: 2,
|
level: 2,
|
||||||
repeat: false,
|
repeat: false,
|
||||||
table.cell(fill: aqua)[*Running software*], table.cell(fill: aqua)[],
|
table.cell(fill: red, colspan: 2)[*Running software*],
|
||||||
),
|
),
|
||||||
[Search for software],
|
[Search for software],
|
||||||
[```bash nix search nixpkgs hello``` #footnote[This evaluates nixpkgs so the first run may be slow, but further runs used cached results]],
|
[```bash nix search nixpkgs hello``` #footnote[This evaluates nixpkgs so the first run may be slow, but further runs used cached results]],
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
table.header(
|
table.header(
|
||||||
level: 2,
|
level: 2,
|
||||||
repeat: false,
|
repeat: false,
|
||||||
table.cell(fill: lime)[*Building the system*], table.cell(fill: lime)[],
|
table.cell(fill: orange, colspan: 2)[*Building the system*],
|
||||||
),
|
),
|
||||||
[Update flake inputs], ```bash nix flake update```,
|
[Update flake inputs], ```bash nix flake update```,
|
||||||
[Build and deploy to this machine], ```bash nixos-rebuild switch --sudo```,
|
[Build and deploy to this machine], ```bash nixos-rebuild switch --sudo```,
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
table.header(
|
table.header(
|
||||||
level: 2,
|
level: 2,
|
||||||
repeat: false,
|
repeat: false,
|
||||||
table.cell(fill: yellow)[*System generations*], table.cell(fill: yellow)[],
|
table.cell(fill: yellow, colspan: 2)[*System generations*],
|
||||||
),
|
),
|
||||||
[List system generations], ```bash nixos-rebuild list-generations```,
|
[List system generations], ```bash nixos-rebuild list-generations```,
|
||||||
[Get changes between system generations],
|
[Get changes between system generations],
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
table.header(
|
table.header(
|
||||||
level: 2,
|
level: 2,
|
||||||
repeat: false,
|
repeat: false,
|
||||||
table.cell(fill: orange)[*Store operations*], table.cell(fill: orange)[],
|
table.cell(fill: lime, colspan: 2)[*Store operations*],
|
||||||
),
|
),
|
||||||
[Get size of system],
|
[Get size of system],
|
||||||
```bash nix path-info -Sh /nix/var/nix/profiles/system```,
|
```bash nix path-info -Sh /nix/var/nix/profiles/system```,
|
||||||
|
|
@ -107,7 +107,7 @@
|
||||||
table.header(
|
table.header(
|
||||||
level: 2,
|
level: 2,
|
||||||
repeat: false,
|
repeat: false,
|
||||||
table.cell(fill: fuchsia)[*Nix development*], table.cell(fill: fuchsia)[],
|
table.cell(fill: aqua, colspan: 2)[*Nix development*],
|
||||||
),
|
),
|
||||||
[Run Nix file], ```bash nix eval -f main.nix```,
|
[Run Nix file], ```bash nix eval -f main.nix```,
|
||||||
[Inspect system config in REPL],
|
[Inspect system config in REPL],
|
||||||
|
|
@ -115,4 +115,17 @@
|
||||||
|
|
||||||
[Format flake],
|
[Format flake],
|
||||||
[Add `formatter.${system} = pkgs.nixfmt-tree;` to your flake outputs, then run ```bash nix fmt```],
|
[Add `formatter.${system} = pkgs.nixfmt-tree;` to your flake outputs, then run ```bash nix fmt```],
|
||||||
|
|
||||||
|
/*
|
||||||
|
table.header(
|
||||||
|
level: 2,
|
||||||
|
repeat: false,
|
||||||
|
table.cell(fill: fuchsia, colspan: 2)[*Infrequently-used commands*],
|
||||||
|
),
|
||||||
|
[Check flake], ```bash nix flake check```,
|
||||||
|
[Get shell with dependencies of package],
|
||||||
|
```bash nix develop nixpkgs#hello```,
|
||||||
|
|
||||||
|
[Create portable archive of package], ```bash nix bundle nixpkgs#hello```,
|
||||||
|
*/
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue