This commit is contained in:
Daniel Langbein 2023-11-20 16:41:41 +01:00
parent e1f702f46e
commit 6687d387df
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 30 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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