diff options
author | sadbeast <sadbeast@sadbeast.com> | 2024-05-30 00:47:47 +0000 |
---|---|---|
committer | sadbeast <sadbeast@sadbeast.com> | 2025-01-11 12:20:20 -0800 |
commit | 8c12d7db633cc421cd96690d077461cf45195334 (patch) | |
tree | c3112acb5cd045ceeb2ada81a281a5991b4c501d /README.md | |
download | nix-config-8c12d7db633cc421cd96690d077461cf45195334.tar.gz nix-config-8c12d7db633cc421cd96690d077461cf45195334.tar.bz2 |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c9ca0b --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Installation + +1. Create partitions under the [NixOS Installation](https://mt-caret.github.io/blog/2020-06-29-optin-state.html) section. +2. Ensure `keys.txt` is located at `/mnt/var/lib/sops-nix/` +3. Follow the [installation guide](https://nixos.org/manual/nixos/stable/#sec-installation-manual-installing) and run `sudo nixos-install --no-root-passwd --flake .#hostname` in this directory, instead of `nixos-install`. + +# Usage + +To rebuild the system after changes in `hosts/`: +``` +sudo nixos-rebuild switch --flake .#hostname +``` + +After making changes in `home/`: + +``` +home-manager switch --flake .#sadbeast@hostname +``` + +# References +This was intitially setup using [https://github.com/Misterio77/nix-starter-configs](https://github.com/Misterio77/nix-starter-configs) + +[Encypted Btrfs Root with Opt-in State on NixOS](https://mt-caret.github.io/blog/2020-06-29-optin-state.html) |