This commit is contained in:
2026-03-28 14:48:41 +00:00
parent 94baea90d6
commit a8b07b0c30

View File

@@ -70,7 +70,7 @@ alejandra . # Format all Nix files
```nix ```nix
{inputs, pkgs, lib, ...}: {inputs, pkgs, lib, ...}:
``` ```
Destructure arguments on separate lines. Use `...` to capture remaining args. Use `...` to capture remaining args. Let Alejandra control the exact layout.
**Attribute Sets**: **Attribute Sets**:
```nix ```nix
@@ -111,7 +111,6 @@ in {
}; };
} }
``` ```
- Destructure args on separate lines
- Use `with lib;` for brevity with NixOS lib functions - Use `with lib;` for brevity with NixOS lib functions
- Define `cfg` for config options - Define `cfg` for config options
- Use `mkIf`, `mkForce`, `mkDefault` appropriately - Use `mkIf`, `mkForce`, `mkDefault` appropriately