mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 03:27:45 +00:00
Update readme
This commit is contained in:
parent
ed09581e5f
commit
563b712caf
2 changed files with 7 additions and 10 deletions
15
README.md
15
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 <machine-name>
|
||||
./rebuild.sh
|
||||
```
|
||||
|
||||
`machine-name` is a machine selected from the machines in the `machines` directory.
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue