mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-25 02:56:05 +01:00
update README
This commit is contained in:
parent
4eeb37ba42
commit
9159433ea7
27
README.md
27
README.md
@ -37,7 +37,19 @@ To apply the updates, continue with "Build and switch".
|
||||
* https://discourse.nixos.org/t/how-to-get-this-pending-updates-notification-in-gnome/16344/3
|
||||
* https://discourse.nixos.org/t/how-to-get-this-pending-updates-notification-in-gnome/16344/6
|
||||
|
||||
#### Option I: Build config and view changes:
|
||||
#### Option I: Build new config and activate it:
|
||||
|
||||
```shell
|
||||
sudo nixos-rebuild -I nixos-config=hosts/$(hostname)/configuration.nix switch
|
||||
```
|
||||
|
||||
#### Option II: Build new config and activate it during next boot:
|
||||
|
||||
```shell
|
||||
sudo nixos-rebuild -I nixos-config=hosts/$(hostname)/configuration.nix boot
|
||||
```
|
||||
|
||||
#### Option III: Build config and view changes:
|
||||
|
||||
```shell
|
||||
# This leaves a symlink named `result` in the current directory.
|
||||
@ -50,24 +62,13 @@ nix --extra-experimental-features nix-command store diff-closures /run/current-s
|
||||
Depending on if there are large kernel changes, either switch to it directly or wait until next boot:
|
||||
|
||||
```shell
|
||||
# TODO: This is not persistent (after reboot).
|
||||
sudo ./result/bin/switch-to-configuration switch
|
||||
# or
|
||||
# TODO: This does not work. There is no new boot menu entry :/
|
||||
sudo ./result/bin/switch-to-configuration boot
|
||||
```
|
||||
|
||||
#### Option II: Build new config and activate it:
|
||||
|
||||
```shell
|
||||
sudo nixos-rebuild -I nixos-config=hosts/$(hostname)/configuration.nix switch
|
||||
```
|
||||
|
||||
#### Option III: Build new config and activate it during next boot:
|
||||
|
||||
```shell
|
||||
sudo nixos-rebuild -I nixos-config=hosts/$(hostname)/configuration.nix boot
|
||||
```
|
||||
|
||||
### Failed services
|
||||
|
||||
If there are e.g. file conflicts due to preexisting dotfiles, the Home Manager user service might fail. To list all failed services, run:
|
||||
|
Loading…
Reference in New Issue
Block a user