As of 7/6/24, I've decided to move to a simpler setup. This repo is no longer in service.
This repository holds my NixOS configuration. It is fully reproducible and flakes based.
Deployment is done using deploy-rs and nix-darwin, see usage.
Unfortunately deploy-rs does not yet support deploying to a local machine without the use of SSH. Therefore for Darwin machines I rely on the darwin-rebuild
command from nix-darwin.
For adding overlays see overlays.
Apply NixOS configuration to a node:
$ task nix:deploy-nixos host=nas
Apply a Darwin configuration to the local machine:
$ task nix:apply-darwin host=todds-macbook
Overlays should be added as individual nix files to ./overlays
with format
final: prev: {
hello = (prev.hello.overrideAttrs (oldAttrs: { doCheck = false; }));
}
For more examples see ./overlays.