forked from bryan_bennett/nix_infra
The infrastructure running most of my machines. Nix based.
- Nix 67.7%
- Emacs Lisp 28.9%
- CSS 2.2%
- HTML 1.2%
| conf.d | Add work email configuration | |
| derivations | Fix vpn_up derivation to properly use updated oc bin in all cases | |
| files | Flake! | |
| lib | Add work email configuration | |
| modules/home | Emacs: Remove unused modes | |
| secrets | Fix agenix | |
| flake.lock | Add agenix | |
| flake.nix | Add agenix | |
| README.md | Add README | |
| secrets.nix | Fix agenix | |
Nix configuration for a bunch of machines
Deploying
First: Clone the repo
Darwin
$ cd <repo clone root>
$ nix build ~/.config/darwin\#darwinConfigurations.cipher-4590
$ ./result/sw/bin/darwin-rebuild switch --flake .
After completing the above,
darwin-rebuild will be in $PATH,
so a simple darwin-rebuild switch --flake <path> will work fine.o
NixOS
$ nixos-rebuild switch --flake <repo clone root>
will work
(if your hostname happens to be bennett-{server,laptop}).