/nixos-config

❄️ My NixOS configs.

Primary LanguageNix

mccurdyc nixos-config

Inspiration

References

NixOS

Nixpkgs

Nix-Darwin

Home-manager

Nix

Other

Installation Docs

Common Commands

faamac Rebuild

darwin-rebuild switch --flake '.#faamac'

fgnix Rebuild

sudo nixos-rebuild switch --flake '.#fgnix'
# sudo nixos-rebuild switch --flake 'git+https://github.com/mccurdyc/nixos-config.git#fgnix'

Update Flake

nix flake update --commit-lock-file

Formatting

nix fmt

Testing

Automated

nix build '.#fgnix'

VM

sudo nixos-rebuild build-vm --flake '.#fgnix'
./nix/store/<hash>-nixos-vm/bin/run-fgnix-vm

Interactive (debugging tests)

nix build '.#packages.x86_64-linux.fgnix.driver'
./result/bin/nixos-test-driver --interactive
(repl) fgnix.start()
(repl) fgnix.shell_interact()