1
Fork 0

Add copy-nixos-config documentation.

This commit is contained in:
Bauke 2023-03-24 19:35:47 +01:00
parent 306271f2c5
commit e31481100b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,24 @@
# NixOS Configurations # NixOS Configurations
## Management
Using the `copy-nixos-config` script, all the configurations are stored in `$BAUKE_DIR/nix/` and copied to `/etc/nixos` for each respective [system](#Systems).
* Get a diff between the current files in `/etc/nixos` and `$BAUKE_DIR/nix/<system>`.
```zsh
copy-nixos-config --diff
```
* Copy the configuration and immediately run `nixos-rebuild <command>`.
```zsh
copy-nixos-config --rebuild <command>
# For example, to switch:
copy-nixos-config --rebuild switch
```
## Systems ## Systems
* [Stardust](./nix/stardust/) * [Stardust](./nix/stardust/)