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=gladius
Apply a Darwin configuration to the local machine:
$ task nix:apply-darwin host=bernd-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.