>_ Replaced shell scripts with justfile, nix shell to download the rest
This commit is contained in:
17
README.md
17
README.md
@ -21,12 +21,19 @@ Requires Nix-channel with [NixOS 24.11](https://nixos.org/)
|
||||
|
||||
## Commands
|
||||
|
||||
Scripts will not run unless the necessary packages have been added to the path, either in a shell or by running nixos-rebuild
|
||||
First time run, will create a shell with the minimum dependencies in order to download the rest
|
||||
|
||||
```Shell
|
||||
nix develop . --experimental-features 'nix-command flakes'
|
||||
just switch-now
|
||||
```
|
||||
|
||||
Scripts below will not run unless the necessary packages have been added to the path, either in a shell or by running nixos-rebuild
|
||||
|
||||
Format all .nix files
|
||||
|
||||
```Shell
|
||||
./fmt
|
||||
just fmt
|
||||
```
|
||||
|
||||
Rebuild and test Nix configuration
|
||||
@ -34,7 +41,7 @@ Rebuild and test Nix configuration
|
||||
- Will add all new files to git and format all nix-files
|
||||
|
||||
```Shell
|
||||
./test
|
||||
just test
|
||||
```
|
||||
|
||||
Rebuild and switch Nix configuration
|
||||
@ -42,7 +49,7 @@ Rebuild and switch Nix configuration
|
||||
- Will add all new files to git and format all nix-files
|
||||
|
||||
```Shell
|
||||
./rebuild
|
||||
just switch
|
||||
```
|
||||
|
||||
Update and switch
|
||||
@ -50,5 +57,5 @@ Update and switch
|
||||
- Will update the flakes and nix-channel, then switch if there are no errors
|
||||
|
||||
```Shell
|
||||
./update
|
||||
just update
|
||||
```
|
||||
|
Reference in New Issue
Block a user