Skip to content

Commit 2e5bcfa

Browse files
eureka-cpuzimbatm
andauthored
doc: Document impure eval in README (#203)
* doc: Document impure eval in README * Use official wiki link Co-authored-by: Jonas Chevalier <[email protected]> --------- Co-authored-by: Jonas Chevalier <[email protected]>
1 parent db89a99 commit 2e5bcfa

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ It builds on the many modules that already exist in [NixOS][nixos].
2323

2424
[nixos]: https://nixos.org
2525

26-
# Usage
26+
## Usage
2727

28-
## Getting Nix
28+
### Getting Nix
2929

3030
In order to use System Manager, you will first need to install Nix.
3131
You can either use your distro's package manager, or use one of the different options
@@ -112,12 +112,21 @@ Once the configuration is defined, you can activate it using the `system-manager
112112
nix run 'github:numtide/system-manager' -- switch --flake '.'
113113
```
114114

115-
# Currently supported features
115+
### Reproducibility
116+
117+
By design flakes run in [pure evaluation mode](https://wiki.nixos.org/wiki/Flakes#Making_your_evaluations_pure).
118+
In some cases you may not want this. To run an impure evaluation of the flake, add the following option to your command:
119+
```sh
120+
--nix-option pure-eval false
121+
```
122+
123+
124+
## Currently supported features
116125

117126
Currently it is possible to configure files under `/etc/` and systemd services.
118127
More features may follow later.
119128

120-
## Supported Systems
129+
### Supported Systems
121130

122131
System Manager is currently only supported on NixOS and Ubuntu. However, it can be used on other distributions by enabling the following:
123132

0 commit comments

Comments
 (0)