Tree


.git-crypt/
.gitattributescommits | blame
.gitignorecommits | blame
LICENSEcommits | blame
README.mdcommits | blame
flake.lockcommits | blame
flake.nixcommits | blame
hack/
home.nixcommits | blame
hosts/
hosts.nixcommits | blame
justfilecommits | blame
lib/
modules/
prek.tomlcommits | blame
secrets/
secrets.nixcommits | blame

README.md

# nix

NixOS and home-manager configurations for multiple systems.

## Structure

* **`hosts/`** - Machine-specific configurations
* **`modules/`** - Reusable modules:
  * **`services/`** - Service definitions
  * **`mixins/`** - Shared dotfiles and user configurations

## Usage

Commands are typically run via [just](https://github.com/casey/just), which wraps:

```sh
# Validate flake
nix flake check

# Apply home-manager configuration
nh home switch "<repo-path>"

# Deploy to remote host
NH_ELEVATION_STRATEGY=none nh os switch . --hostname <host> --target-host root@<host> --build-host root@<host>

# Update flake.lock
nix flake update

# Nix store and collection cleanup
nix-store --gc
nix-collect-garbage -d
```