diff options
| author | DavHau <hsngrmpf+github@gmail.com> | 2025-01-07 12:39:46 +0700 |
|---|---|---|
| committer | DavHau <hsngrmpf+github@gmail.com> | 2025-01-13 18:57:14 +0700 |
| commit | 6e6be766010b911c69ac096735199f13344b1df1 (patch) | |
| tree | 1bec247c5ba7740c6708a04604b75345fd2745c9 /pkgs/development/python-modules/rangehttpserver | |
| parent | 66ca9869c7588aaf8077e454674877c382b91451 (diff) | |
nixos/image.modules: siplify type for better UX
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
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
