Dotfiles
NixOS configuration files personalized for my daily driver and home server.
Work Computer
To get started, install NixOS, enable flakes and clone this repository.
git clone https://github.com/lavafroth/dotfiles
sudo nixos-rebuild switch --flake dotfiles#cafe-nosecureboot
Secureboot
- Use the preinstalled
sbctlcommand to generate your keys - Clear the manufacturer keys and enroll yours as described here.
Note: My system did not require enrolling Microsoft keys alongside mine. However, your setup might break if you don't. Research about your device carefully before enrolling keys.
- Run the following to rebuild the system from now on
sudo nixos-rebuild switch --flake dotfiles
Home Server
Install NixOS with the headless (no GUI) settings. Enable flakes.
Clone this repo, enter the directory and run a rebuild for the host rahu.
git clone https://github.com/lavafroth/dotfiles
sudo nixos-rebuild switch --flake dotfiles#rahu
Android (Nix-on-droid)
I use Nix-on-droid to have Termux with a declarative config. Install Nix-on-droid from F-Droid and enable flakes when prompted. Clone this repo and rebuild the environment.
git clone https://github.com/lavafroth/dotfiles
nix-on-droid switch --flake dotfiles
Troubleshooting
command-not-found unable to connect to database
The programs.sqlite is only generated for the nixos- prefixed channels.
Ensure you use the unstable channel using these commands as root:
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
nix-channel --update
Further reading: NixOS discourse.
Running blender with CUDA
nix run --impure github:guibou/nixGL -- nix run blender-bin