Add a section on Nix, Nixos and related tools #30

Merged
silver merged 11 commits from #29-nix_nixos-assignment into main 2024-10-18 22:26:26 +00:00
2 changed files with 17 additions and 3 deletions
Showing only changes of commit a0c503896a - Show all commits

BIN
_git.tar.gz (Stored with Git LFS)

Binary file not shown.

View file

@ -23,6 +23,18 @@ This means that multiple versions of the program (some even the same version but
An example using different versions of Firefox: An example using different versions of Firefox:
![img.png](nix/firefox_co-existing.png) ![img.png](nix/firefox_co-existing.png)
##### Example
An example of packaging an application can be found here:
[Sieve Editor GUI on Nixpkgs][nix_pkgs_sieve]
This is packaging up a GUI node.js application.
The application itself allows the user to edit sieve scripts.
Once you have [downloaded and installed](#download) Nix you will be able to install and run it like so:
```shell
nix-shell -p sieve-editor-gui
sieve-editor-gui .
```
#### Language #### Language
There are two partially difficult problems in computer science: There are two partially difficult problems in computer science:
1. Off by one errors 1. Off by one errors
@ -80,6 +92,7 @@ For more detailed information I recommend these resources.
* [Nix Pills][nix_guide_pills] * [Nix Pills][nix_guide_pills]
### Flakes ### Flakes
### Nixos ### Nixos
@ -109,4 +122,5 @@ For more detailed information I recommend these resources.
[nixos_skynet]: https://forgejo.skynet.ie/Skynet/nixos [nixos_skynet]: https://forgejo.skynet.ie/Skynet/nixos
[nix_paper]: https://edolstra.github.io/pubs/nspfssd-lisa2004-final.pdf [nix_paper]: https://edolstra.github.io/pubs/nspfssd-lisa2004-final.pdf
[nix_guide_official]: https://nix.dev/tutorials/first-steps/ [nix_guide_official]: https://nix.dev/tutorials/first-steps/
[nix_guide_pills]: https://nixos.org/guides/nix-pills/# [nix_guide_pills]: https://nixos.org/guides/nix-pills/#
[nix_pkgs_sieve]: https://github.com/NixOS/nixpkgs/blob/a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c/pkgs/by-name/si/sieve-editor-gui/package.nix