My Nix configs for all my machines. This repo was particularly inspired by lovesegfault's nix-config, if you can't tell from the nearly identical structure and content :)
For the configurations' entry points see the individual [hosts], as well as [flake.nix]. For adding overlays see overlays.
.
├── core # Baseline configurations applicable to all machines
├── dev # Developer tooling configuration
├── graphical # Sway/i3 configuration for the desktop
├── hardware # Hardware-specific configuration
├── hosts # Machine definitions
├── nix # Nix build support files (overlays, deployment code)
└── users # Per-user configurations
For macOS hosts using nix-darwin
:
$ darwin-rebuild --flake "github:alesauce/nix-home#hemingway" switch
For non-NixOS hosts (i.e. home-manager-only systems such as wiggin
):
$ home-manager --flake "github:alesauce/nix-home#myHost" switch
Overlays should be added as individual nix files to ./nix/overlays with format
final: prev: {
hello = (prev.hello.overrideAttrs (oldAttrs: { doCheck = false; }));
}
For more examples see [./nix/overlays][overlays].