1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 03:27:45 +00:00

Update readme

This commit is contained in:
RGBCube 2023-11-11 15:05:09 +03:00
parent ed09581e5f
commit 563b712caf
No known key found for this signature in database
2 changed files with 7 additions and 10 deletions

View file

@ -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 <machine-name>
./rebuild.sh
```
`machine-name` is a machine selected from the machines in the `machines` directory.

View file

@ -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"