mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Write README
This commit is contained in:
parent
a1c1224622
commit
ef9e98ce0a
1 changed files with 43 additions and 1 deletions
44
README.md
44
README.md
|
@ -1,6 +1,48 @@
|
||||||
# My NixOS Configuration
|
# My NixOS Configurations
|
||||||
|
|
||||||
|
This repository contains my NixOS configurations for all my machines.
|
||||||
|
|
||||||
|
## Bootstrapping
|
||||||
|
|
||||||
|
Here is the script you need to run to get this working:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Remove old configuration as it is not used.
|
||||||
|
sudo rm -rf /etc/nixos
|
||||||
|
|
||||||
|
nix-shell -p git
|
||||||
|
|
||||||
|
git clone https://github.com/RGBCube/NixOSConfiguration
|
||||||
|
cd NixOSConfiguration
|
||||||
|
|
||||||
|
chmod +x rebuild.sh
|
||||||
|
./rebuild.sh --clean-garbage <machine-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
`machine-name` is a machine selected from the machines in the `machines` directory.
|
||||||
|
|
||||||
|
## Applying Changes
|
||||||
|
|
||||||
|
Lets say you have changed the configuration and want to apply the changes
|
||||||
|
to your system. You would have to run the rebuild script:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./rebuild.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
This runs the script interactively.
|
||||||
|
|
||||||
|
You can also check how the script is used:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./rebuild.sh --help
|
||||||
|
```
|
||||||
|
|
||||||
|
This outputs:
|
||||||
|
|
||||||
|
```
|
||||||
|
Usage: ./rebuild.sh [-h | --help] [-c | --clean-garbage] [machine]
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue