forked from Bos55/nix-config
Compare commits
8 commits
ffe7572c7d
...
3933d0f573
| Author | SHA1 | Date | |
|---|---|---|---|
| 3933d0f573 | |||
| c17184a312 | |||
| 02c0273286 | |||
| 34df158ff6 | |||
| 577fdb16ca | |||
| d118e926ec | |||
| b58d56fa53 | |||
| c8836f2543 |
2 changed files with 8 additions and 2 deletions
|
|
@ -33,5 +33,7 @@ Follow these rules when modifying or extending the Bos55 NixOS configuration.
|
|||
## 6. CI/CD Robustness
|
||||
- **IP-Based Login**: When CI runners (Gitea Actions) need to interact with internal services, use direct IP addresses (e.g., `192.168.0.25`) for login/auth to bypass potential DNS resolution issues in the runner environment.
|
||||
|
||||
## 7. No Magic Values
|
||||
- **Shared Variables**: If a port or string is used in multiple places within a module (e.g., for the service listener and the DB connection string), use a variable or option to ensure they always stay in sync.
|
||||
## 8. Git Workflow & Commits
|
||||
- **Atomic Commits**: Each commit should represent a single logical change and be easily revertible. Split docs, metadata, and core code changes into separate commits.
|
||||
- **Conventional Commits**: Use conventional commit messages (e.g., `feat:`, `fix:`, `docs:`, `refactor:`, `ci:`, `meta:`).
|
||||
- **Branching**: Always work in feature branches and push to origin to create pull requests.
|
||||
|
|
|
|||
|
|
@ -45,3 +45,7 @@ This skill provides the core principles and implementation patterns for the Bos5
|
|||
- **Supply Chain Protection**: Always verify and lock Nix flake inputs. Use fixed-output derivations for external resource downloads.
|
||||
- **Assumptions Documentation**: Clearly document environment assumptions (e.g., Proxmox virtualization, Tailscale networking, and specific IP ranges) in host or service READMEs.
|
||||
- **Project Structure**: Maintain the separation of `hosts`, `modules`, `users`, and `secrets` to ensure clear ownership and security boundaries.
|
||||
|
||||
### 5. Git Standards
|
||||
- **Rule**: Follow **Conventional Commits** (e.g., `feat:`, `refactor:`, `docs:`, `meta:`).
|
||||
- **Rule**: Keep commits **atomic** and **revertible**. Never mix documentation, infrastructure, and style guide changes in a single commit.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue