f5892df478a100729277e01623486ac00d9a8ce7
Dotfiles
NixOS configuration files personalized for my workflow.
To get started, install NixOS, enable flakes and clone this repository.
git clone https://github.com/lavafroth/dotfiles
cd dotfiles
sudo nixos-rebuild switch --flake .#cafe-nosecureboot
Secureboot
To enable secureboot, use the preinstalled sbctl command to generate your keys,
clear the manufacturer keys and enroll yours as described here.
Note: My system did not require enrolling Microsoft keys alongside my own. However, your setup might break if you do not include the Microsoft keys. Classic case of Microsoft being a jerk.
Once the keys are enrolled, run the following to rebuild the system from now on
sudo nixos-rebuild switch --flake .
Sponsorblock for mpv
Optionally, if you want to block sponsors in mpv, run
pushd sources/mpv-sponsorblock
mkdir sources/mpv/scripts
nix build
cp result/lib/libmpv_sponsorblock.so ../mpv/scripts/sponsorblock.so
popd
followed by another rebuild.
Troubleshooting
command-not-found unable to connect to database
The programs.sqlite is only generated for the nixos- prefixed channels.
Run the following as root:
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
nix-channel --update
Further reading: NixOS discourse.
Languages
Nix
99.1%
Shell
0.7%
CSS
0.2%