Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litsynp/nix-practice
https://github.com/litsynp/nix-practice
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/litsynp/nix-practice
- Owner: litsynp
- Created: 2024-04-17T16:29:28.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-21T14:06:51.000Z (7 months ago)
- Last Synced: 2024-08-18T06:44:37.477Z (3 months ago)
- Language: Nix
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nix-practice
## How to enter Nix container
```sh
$ make run
```## Nix
Inside the container, you can run the following commands:
```sh
$ nix-shell # Enter the nix shell
``````sh
$ nix-repl # Enter the nix repl
``````sh
$ echo 1 + 2 > file.nix
$ nix-instantiate --eval # Evaluate default.nix
$ nix-instantiate --eval file.nix # Evaluate expression in the specified Nix file
$ nix-instantiate --eval --strict file.nix # Evaluate expression in the specified Nix file, fully evaluated
```