up
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user