forked from lix-project/lix-website
Merge pull request 'finish up the install instructions' (#5) from install-instructions into main
Reviewed-on: lix-project/lix-website#5 Reviewed-by: ktemkin <kate@ktemk.in>
This commit is contained in:
commit
9fc410c53f
|
@ -51,7 +51,7 @@ Next, add the `lix-module` as one of the arguments to your output function:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, add the Lix _NixOS Module_ to your configuration:
|
Add the Lix _NixOS Module_ to your configuration:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
|
@ -64,7 +64,7 @@ Finally, add the Lix _NixOS Module_ to your configuration:
|
||||||
# based on your platform (NixOS, nix-darwin) and architecture.
|
# based on your platform (NixOS, nix-darwin) and architecture.
|
||||||
nixosConfigurations.your-box = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.your-box = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux"
|
system = "x86_64-linux"
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
|
||||||
# This is the important part -- add this line to your module list!
|
# This is the important part -- add this line to your module list!
|
||||||
|
@ -78,12 +78,27 @@ Finally, add the Lix _NixOS Module_ to your configuration:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Finally, to add our binary cache (optional), add the following to any NixOS module in your configuration
|
||||||
|
(e.g. configuration.nix):
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
nix.settings.extra-substituters = [
|
||||||
|
"https://cache.lix.systems"
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings.trusted-public-keys = [
|
||||||
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
||||||
|
];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Rebuild and switch into your new system (either using `nixos-rebuild` or `darwin-rebuild`).
|
Rebuild and switch into your new system (either using `nixos-rebuild` or `darwin-rebuild`).
|
||||||
You should now be using Lix! You can verify this by asking the `nix` command to report its version:
|
You should now be using Lix! You can verify this by asking the `nix` command to report its version:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ nix --version
|
$ nix --version
|
||||||
nix (Lix, like Nix) 2.90.0-lix
|
nix (Lix, like Nix) 2.90.0-beta.0
|
||||||
```
|
```
|
||||||
|
|
||||||
As long as you see `Lix` in the output, you're good! If you're not sure what to do now, it's a
|
As long as you see `Lix` in the output, you're good! If you're not sure what to do now, it's a
|
||||||
|
@ -132,12 +147,27 @@ section, and add the line provided in the configuration
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Finally, to add our binary cache (optional), add the following to any NixOS module in your configuration
|
||||||
|
(e.g. configuration.nix):
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
nix.settings.extra-substituters = [
|
||||||
|
"https://cache.lix.systems"
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings.trusted-public-keys = [
|
||||||
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
||||||
|
];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Rebuild and switch into your new system (either using `nixos-rebuild` or `darwin-rebuild`).
|
Rebuild and switch into your new system (either using `nixos-rebuild` or `darwin-rebuild`).
|
||||||
You should now be using Lix! You can verify this by asking the `nix` command to report its version:
|
You should now be using Lix! You can verify this by asking the `nix` command to report its version:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ nix --version
|
$ nix --version
|
||||||
nix (Lix, like Nix) 2.90.0-lix
|
nix (Lix, like Nix) 2.90.0-beta.0
|
||||||
```
|
```
|
||||||
|
|
||||||
As long as you see `Lix` in the output, you're good! If you're not sure what to do now, it's a
|
As long as you see `Lix` in the output, you're good! If you're not sure what to do now, it's a
|
||||||
|
|
|
@ -75,8 +75,7 @@ of the `upgrade-nix` command.
|
||||||
Thanks to Nix, we can actually ask Lix to upgrade your system directly. Run the following command:
|
Thanks to Nix, we can actually ask Lix to upgrade your system directly. Run the following command:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nix run --extra-experimental-features "nix-command flakes" \
|
sudo nix run --experimental-features "nix-command flakes" --extra-substituters https://cache.lix.systems --trusted-public-keys "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" 'git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.0' -- upgrade-nix
|
||||||
"git+https://git.lix.systems/lix-project/lix" -- upgrade-nix
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You should now have upgraded to Lix! You can verify this by asking the `nix` command
|
You should now have upgraded to Lix! You can verify this by asking the `nix` command
|
||||||
|
@ -84,7 +83,7 @@ to report its version:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ nix --version
|
$ nix --version
|
||||||
nix (Lix, like Nix) 2.90.0-lix
|
nix (Lix, like Nix) 2.90.0-beta.0
|
||||||
```
|
```
|
||||||
|
|
||||||
As long as you see `Lix` in the output, you're good! If you're not sure what to do now, it's a
|
As long as you see `Lix` in the output, you're good! If you're not sure what to do now, it's a
|
||||||
|
|
Loading…
Reference in a new issue