mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-11 02:07:27 +01:00
Usage before:
```
image.modules.my-format = [
(
{ config, pkgs, ... }:
{
imports = [ ./my-other-module.nix ];
foo = "bar";
};
)
]
```
Usage after:
```
image.modules.my-format = { config, pkgs, ... }: {
imports = [ ./my-other-module.nix ];
foo = "bar";
};
```
If the user wants to pass a list of modules only:
```
image.modules.my-format.imports = [
./module1.nix
./module2.nix
]
```
cc @phaer @zimbatm
|
||
|---|---|---|
| .. | ||
| amend-repart-definitions.py | ||
| assert_uki_repart_match.py | ||
| file-options.nix | ||
| images.nix | ||
| repart-image.nix | ||
| repart-verity-store.nix | ||
| repart.nix | ||