- Notifications
You must be signed in to change notification settings - Fork11
lovesegfault/nix-config
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository holds my NixOS configuration. It is fully reproducible, flakesbased, and position-independent, meaning there is no moving around ofconfiguration.nix
.
Deployment is done usingdeploy-rs, seeusage.
For the configurations' entry points see the individualhosts, as well asflake.nix. For adding overlays seeoverlays.
Hostnames are picked from myhostname list
.├── 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
To deploy all hosts:
$deploy
To deploy a specific host:
$deploy .#myHost
For macOS hosts usingnix-darwin
:
$darwin-rebuild --flake~/src/nix-config#poincare switch
For non-NixOS hosts (i.e. home-manager-only systems such asbeme-glaptop
):
$home-manager --flake~/src/nix-config#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.
About
My personal NixOS config