diff --git a/.bauke/NixOS.md b/.bauke/NixOS.md index d3cc584..4f7dcee 100644 --- a/.bauke/NixOS.md +++ b/.bauke/NixOS.md @@ -1,5 +1,24 @@ # 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/`. + +```zsh +copy-nixos-config --diff +``` + +* Copy the configuration and immediately run `nixos-rebuild `. + +```zsh +copy-nixos-config --rebuild + +# For example, to switch: +copy-nixos-config --rebuild switch +``` + ## Systems * [Stardust](./nix/stardust/)