Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Project Structure
- `flake.nix` - Main flake configuration with inputs and outputs
- `darwin/` - macOS system configurations
- `hosts/` - Per-host configurations (higgins, benson, spaceblack, dunston)
- `hosts/` - Per-host configurations (higgins, benson, spaceblack, dunston, mfourmax)
- `modules/` - Reusable Darwin modules
- `home-manager/` - User environment configurations
- `.config/` - Application-specific configs (ghostty, git, zed)
Expand All @@ -29,7 +29,7 @@ Before applying changes:
5. Apply if successful: `sudo darwin-rebuild switch --flake .#<host>`

## Code Style
- **Language**: Nix using RFC-style formatting (nixfmt-rfc-style)
- **Language**: Nix using RFC-style formatting (nixfmt)
- **Formatting**: Use `nixfmt` formatter (configured in treefmt.toml)
- **Imports**: Group imports in `imports = [ ... ];` blocks at the top of modules
- **Function signatures**: Use attribute sets with destructuring: `{ pkgs, lib, config, ... }:`
Expand Down Expand Up @@ -59,8 +59,8 @@ Before applying changes:
- **Update flake inputs**: `nix flake update` or `nix flake lock --update-input <input>`

## Quick Reference
- **Current hosts**: higgins, benson, spaceblack, dunston
- **Current hosts**: higgins, benson, spaceblack, dunston, mfourmax
- **Darwin state version**: 4
- **Home-manager state version**: "24.05"
- **Primary formatter**: nixfmt-rfc-style
- **Primary formatter**: nixfmt
- **Flake**: Uses `nixpkgs` and `darwin` + `home-manager` as inputs
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
pkgs.mkShell {
packages = with pkgs; [
treefmt
nixfmt-rfc-style
nixfmt
nixd
direnv
git
Expand Down Expand Up @@ -93,11 +93,11 @@
};
};

formatter.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.nixfmt-rfc-style;
formatter.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.nixfmt;
devShells.aarch64-darwin.default = devShellFor "aarch64-darwin";

# For CI lint on linux runners
devShells.x86_64-linux.default = devShellFor "x86_64-linux";
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
};
}
2 changes: 1 addition & 1 deletion home-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
nixd
cloudlens
cmatrix
nixfmt-rfc-style
nixfmt
nil
tree
];
Expand Down
Loading