1

doc: update documentation for rebuilding

This commit is contained in:
Himadri Bhattacharjee
2023-08-25 08:19:12 +05:30
parent 54c51395ac
commit 60750ff93c

View File

@@ -2,21 +2,25 @@
NixOS configuration files personalized for my workflow.
To get started, install NixOS, enable flakes, clone this repository and run the rebuild command.
To get started, install NixOS, enable flakes, clone this repository.
```sh
git clone --recursive https://github.com/lavafroth/dotfiles
cd dotfiles
```
Now run the following rebuild command:
```sh
sudo nixos-rebuild switch --flake .#cafe
nix develop
cafe-rebuild switch
```
#### Optional: Installing Sponsorblock for mpv
A fresh install is unlikely to have Rust and thus, the sponsorblock
library won't be installed. Since I won't be uploading the compiled shared
object, you have to compile it yourself. After the first `nixos-rebuild`, run:
object, you have to compile it yourself. After the first rebuild, run:
```sh
pushd sources/mpv-sponsorblock
@@ -25,4 +29,4 @@ cp ./target/release/libmpv_sponsorblock.so ../mpv/scripts/sponsorblock.so
popd
```
followed by the aforementioned `nixos-rebuild` command.
followed by another rebuild.