No description
- PostScript 95.5%
- Nix 3.7%
- Emacs Lisp 0.5%
| bundles | ||
| hosts | ||
| nix | ||
| overlays | ||
| packages | ||
| users | ||
| .envrc | ||
| .gitattributes | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
| TODO | ||
NixOS Config
My NixOS configuration.
First install
this flake uses experimental nix features!
Either manually add pipe-operator (for lix) or pipe-operators (for nix)
to your ~/.config/nix/nix.conf config:
experimental-features = nix-command build pipe-operator
Alternatively, you can build the derivation and switch to it manually, and
proceed to run nixos-rebuild as normal:
host=$(cat /etc/hostname); \
ref="git+file://$(pwd)#nixosConfigurations.\"$host\".config.system.build.toplevel"; \
out=$(nix --extra-experimental-features 'nix-command flakes pipe-operator' build \
--print-out-paths $ref --keep-going --show-trace --impure --no-link | tail -n1); \
output="$out" | tail -n1; \
sudo "$out/bin/switch-to-configuration" switch
Note
The above script doesn't update the bootloader, run
nixos-rebuildafterwards.