From e31481100bdb8b1e1bb41ee784fa7b7343e3af90 Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 24 Mar 2023 19:35:47 +0100 Subject: [PATCH] Add copy-nixos-config documentation. --- .bauke/NixOS.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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/)