mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
docs
This commit is contained in:
parent
e1f702f46e
commit
6687d387df
28
NixOS.md
28
NixOS.md
@ -238,6 +238,23 @@ nix-eval '{ a=1; }?a'
|
|||||||
#=> true
|
#=> true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Escape strings
|
||||||
|
|
||||||
|
* https://nixos.org/manual/nix/stable/language/values
|
||||||
|
|
||||||
|
Double-quoted strings (e.g. `"foo bar"`):
|
||||||
|
```
|
||||||
|
" -> \"
|
||||||
|
\ -> \\
|
||||||
|
${ -> \${
|
||||||
|
```
|
||||||
|
|
||||||
|
Indented strings (e.g. `''foo bar''`):
|
||||||
|
* `${` -> `''${`
|
||||||
|
* `''` -> `'''`
|
||||||
|
|
||||||
|
URIs can be written without quotes (e.g. `http://example.org/foo.bar`).
|
||||||
|
|
||||||
## Run AppImages
|
## Run AppImages
|
||||||
|
|
||||||
* https://nixos.wiki/wiki/Appimage
|
* https://nixos.wiki/wiki/Appimage
|
||||||
@ -250,3 +267,14 @@ nix-shell -p appimage-run
|
|||||||
# Inside the shell, you can run an AppImage:
|
# Inside the shell, you can run an AppImage:
|
||||||
appimage-run ~/Downloads/ubports-installer_0.10.0_linux_x86_64.AppImage
|
appimage-run ~/Downloads/ubports-installer_0.10.0_linux_x86_64.AppImage
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Additional resources
|
||||||
|
|
||||||
|
* Simple NixOS flake template for NixOS with HomeManager. https://github.com/Misterio77/nix-starter-configs#readme
|
||||||
|
* NixOS guide (development environment, gaming, etc). https://github.com/mikeroyal/NixOS-Guide#table-of-contents
|
||||||
|
* nix function cheatsheet: https://nix-cheatsheet.pixie.homes/
|
||||||
|
* Documenting the Journey of Learning and Mastering Nix. https://ianthehenry.com/posts/how-to-learn-nix/
|
||||||
|
* Nix language basics. https://nix.dev/tutorials/nix-language.html
|
||||||
|
* Nix data types. https://nixos.org/manual/nix/stable/language/values
|
||||||
|
* MkIfElse. https://discourse.nixos.org/t/mkif-vs-if-then/28521/4?u=langfingaz
|
||||||
|
* Nix language basics - a one pager. https://github.com/tazjin/nix-1p#nix---a-one-pager
|
||||||
|
@ -403,10 +403,3 @@ Remove leftover EFI entries of removed generations:
|
|||||||
```shell
|
```shell
|
||||||
sudo /run/current-system/bin/switch-to-configuration boot
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
```
|
```
|
||||||
|
|
||||||
## References
|
|
||||||
|
|
||||||
Some references to websites that helped me create this repository:
|
|
||||||
|
|
||||||
* Simple NixOS flake template for NixOS with HomeManager. https://github.com/Misterio77/nix-starter-configs#readme
|
|
||||||
* NixOS guide (development enviroment, gaming, etc). https://github.com/mikeroyal/NixOS-Guide#table-of-contents
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
# sudo smtpctl show status
|
# sudo smtpctl show status
|
||||||
# Send an email.
|
# Send an email.
|
||||||
# TODO: One has set the sender explicitely to `-f langbein@mail.de`.
|
# TODO: One has set the sender explicitely to `-f langbein@mail.de`.
|
||||||
# echo "Subject: hello" | sendmail -f langbein@mail.de daniel@systemli.org
|
# echo -e "Subject: Test\n\nHi there, this is some test." | sendmail -f langbein@mail.de daniel@systemli.org
|
||||||
# Queue handling
|
# Queue handling
|
||||||
# sudo smtpctl show queue
|
# sudo smtpctl show queue
|
||||||
# sudo smtpctl schedule all
|
# sudo smtpctl schedule all
|
||||||
|
Loading…
Reference in New Issue
Block a user