Setup NixOS
December 23, 2025 ยท View on GitHub
Follow NixOS manual, be sure to setup
- Networking / Wireless
- Hostname
- User and password
nix flake(n)vimgit
on first setup. Then clone this repo and
- possibly add entry for hostname adding new folder under
system, - possibly add entry for user adding new folder under
users, - check / update
hardware-configuration.nix.
Then apply.
Build install medium
See nixos-generators
nix build .#nixosConfigurations.jb-nixos-live.config.formats.[raw|raw-efi|install-iso]
Full update
./update.sh && ./apply-user.sh jonas-nixos [jonas-mbp / ...] && sudo ./apply-system.sh
Notes
-
nix flake show -
nix repland:lf . -
Debug derivations:
nix develop --ignore-environment .#derivation.system -
nix-flake-lock-nixpkgs -
nix-vim-nixpkgs -
echo "use flake" >> .envrc && direnv allow
Troubleshooting
- macOS update breaks environment
Add
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
to /etc/zshrc
- macOS update breaks alacritty
Install using
brew install --cask alacritty --no-quarantine
to /etc/zshrc
Sometimes macOS decides you are not capable of your own decisions. Use:
xattr -rd com.apple.quarantine /Applications/Alacritty.app
- Alacritty not working properly
Update using brew.
Open
-
Manix
-
Get vaapi running on MacBookPro12,1 (chromium takes an incredible amount of cpu) --> works at least for h.264 videos
-
Get Cirrus CS4208 running on MacBookPro12,1 (no bass)
-
Clean up minimal / default includes
Backlog
- Reenable newm, add newm-sidecar