From 563b712caf40d7311c0f10bc2741f6d6aacc3770 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 11 Nov 2023 15:05:09 +0300 Subject: [PATCH] Update readme --- README.md | 15 ++++++--------- rebuild.sh | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f601f44..438abb7 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,14 @@ This repository contains my NixOS configurations for all my machines. Here is the script you need to run to get this working: +> [!IMPORTANT] +> You **WILL NEED** `/etc/nixos/hardware-configuration.nix`, as this configuration +> imports it, so you will need to run `sudo nixos-generate-config` if you've deleted them. + ```sh -# Remove old configuration as it is not used. -sudo rm -rf /etc/nixos +nix-shell -p git --command "git clone https://github.com/RGBCube/NixOSConfiguration && cd NixOSConfiguration" -nix-shell -p git - -git clone https://github.com/RGBCube/NixOSConfiguration -cd NixOSConfiguration - -chmod +x rebuild.sh -./rebuild.sh +./rebuild.sh ``` `machine-name` is a machine selected from the machines in the `machines` directory. diff --git a/rebuild.sh b/rebuild.sh index 9110e1f..6470704 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -12,4 +12,4 @@ if [[ $machine == "" ]]; then read -p "What machine would you like to build? (Possible options: $available_machines): " machine fi -nix-shell --packages git --command "sudo nixos-rebuild switch --flake .#$machine" +nix-shell --packages git --command "sudo nixos-rebuild switch --impure --flake .#$machine"