Add Development Workflow
34
Development-Workflow.md
Normal file
34
Development-Workflow.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Development Workflow
|
||||||
|
|
||||||
|
This page documents how to safely develop and maintain Athenix.
|
||||||
|
|
||||||
|
## Required Checks
|
||||||
|
|
||||||
|
Before committing:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nix fmt
|
||||||
|
nix flake check
|
||||||
|
```
|
||||||
|
|
||||||
|
## Testing Hosts
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nix build .#nixosConfigurations.nix-laptop1.config.system.build.toplevel
|
||||||
|
```
|
||||||
|
|
||||||
|
## CI
|
||||||
|
|
||||||
|
Gitea Actions automatically validates:
|
||||||
|
- Flake evaluation
|
||||||
|
- Formatting
|
||||||
|
- Key system builds
|
||||||
|
- Installer and container artifacts
|
||||||
|
|
||||||
|
## Rollbacks
|
||||||
|
|
||||||
|
If a system breaks:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo nixos-rebuild switch --rollback
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user