Commit Graph

32 Commits

Author SHA1 Message Date
Jörg Thalheim
5e7fe98d48 disable aarch64 in CI for now 2024-01-16 11:00:01 +01:00
Jörg Thalheim
6ca22f4f04 drop deprecated nixos-generators attribute 2024-01-16 10:48:00 +01:00
r-vdp
d73f9921bf
Allow overriding the nixosSystem function.
This is useful to add additional defaults or when nixpkgs was patched
and we want to use the patched module sources instead of this specified
in the flake inputs.
2023-12-04 10:52:33 +01:00
Jörg Thalheim
cb278b7eb5 checks: fix evaluation on hydra and nix-eval-jobs
both expects systems to be exported
2023-09-30 08:56:30 +02:00
DavHau
27c86ee228 feat(all-formats.nix): add readme section and test 2023-07-03 14:06:57 +03:00
DavHau
f4a79d08d7 feat(all-formats.nix): add formatConfigs
While the `all-formats.nix` module allows to import all formats at once, it lacks an interface to customize formats or add formats.

This is fixed by adding the top-level option `formatConfigs` (attrsOf deferredModule).

All format modules created under `config.formatConfigs` are mapped so their outputs are available under `config.formats` which has also been moved to the top-level (previously `config.system.formats`).

Done:
- add option `formatConfigs`
- move option `system.formats` -> `formats`
- add test for customizing a format
2023-07-03 11:54:20 +03:00
Jörg Thalheim
31eb2a87d5 drop legacy flake schema 2023-06-19 08:25:31 +07:00
DavHau
435e0d366f add checks for al formats 2023-05-29 11:05:09 +02:00
DavHau
27efbe76ba add format check 2023-05-29 10:20:56 +02:00
DavHau
ef5c3a94b2 update flake schema 2023-05-29 09:50:23 +02:00
DavHau
0849633d73 run nix flake check in CI 2023-05-29 09:45:01 +02:00
DavHau
c1e0b7feec reformat all files 2023-05-29 09:35:13 +02:00
DavHau
55f78d04fc add formatter to flake.nix 2023-05-29 09:34:51 +02:00
Felix Buehler
aaaa4a080e fix deprecation message 2023-03-03 20:51:31 +01:00
Lassulus
1e0a05219f
Merge pull request #201 from mayl/custom_formats
Custom formats
2023-02-13 19:47:41 +05:30
Oleg Lebedev
b7ed622972
Add aarch64-darwin support 2023-02-11 10:19:09 +11:00
Larry May
5336fdf53d eliminates unnecessary recursion 2023-01-05 20:46:11 -05:00
Larry May
a5b82accc8 enables custom formats with the nixosGenerate function 2023-01-05 20:44:30 -05:00
Gabriel Arazas
d8db0197da nixosGenerate: add lib parameter 2022-11-20 10:27:35 +08:00
lassulus
aec022bf7e flake: use nixos-generate to silence warnings 2022-10-26 21:33:45 +02:00
David Arnold
d53f2d9aff
refactor: fix erroneus package naming 2022-10-23 14:32:59 -05:00
Alan Strohm
f561d89270 nixosGenerate: allow and suggest leaving pkgs set to null 2022-08-12 21:04:56 -07:00
Matt Schreiber
8feb8faa17
Nix >= 2.7 app.<system>.default compat 2022-06-10 20:33:14 -04:00
Alan Strohm
e22916ec84 pass specialArgs through to nixosSystem 2022-04-21 09:43:21 -07:00
mayl
e610a931ac
adds nixosGenerate function (#119)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-11-20 07:35:59 +00:00
David Arnold
5bde0c8b9e
nixpkgs.lib is now in nix-community 2021-06-23 12:16:33 -05:00
David Arnold
cbfb6691f7
For module-only consumers, avoid depending on nixpkgs
This seems odd, but it works since input dependencies are lazily fetched
that means a downstream repo, that only consumes the modules output
(like for example `divnix/digga`), does never fetch nor instantiate
nixpkgs proper (which would be costly).

This enables `divnix/digga` to continue to _not_ depend on `nixpkgs`
for operation.

(it still depends on `nixpkgs` as a strict development dependency, but
beacause of the black magic which I describe above, no end user
will ever fetch it's depenency on `nixpkgs`.

So, here, we want to implement a similar trick to avoid acquireing deps
where they should net be acquired.
2021-06-20 15:58:36 -05:00
Pacman99
afab4671b8 flake: export formats as nixosModules 2021-06-08 18:48:30 -07:00
Jörg Thalheim
a62078b0da
flake.nix: remove invalid nixosConfigurations
This breaks `nix flake show`. It's not quite clear to me why this is
needed in packages.
2021-02-10 09:16:24 +01:00
Jörg Thalheim
c239d0de25
bump nixpkgs
also make branch explicit, otherwise updates depends on user's /etc/nix/registry.json
2021-02-10 09:11:53 +01:00
jD91mZM2
9a8e56a767
Implement support for flakes 2020-10-23 18:16:09 +02:00
jD91mZM2
f8b23a0dd6
Create flake.nix 2020-10-23 16:48:17 +02:00