1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00
Commit Graph

1153 Commits

Author SHA1 Message Date
Pacman99
4e3b9e6f89 use deploy's overlay to prevent nixpkgs dep 2022-02-23 15:23:14 -08:00
Pacman99
9006a2a89e importers: include flattenTree in internal lib 2022-02-23 15:23:14 -08:00
David Arnold
8e7239875f remove code that is no more in active use 2022-02-23 15:23:14 -08:00
David Arnold
39b39f1a4f imp: conservative digga lib output
in order to avoid people accidentially depending on some internal API
which we don't explicitly want to support well into version 1.0, hide
those from the output.

Users who still want to use those need to copy them over, instead.

This reduces our API exposure and hopefully will help save maintainer
resources once `digga` completely takes over the world.
2022-02-23 15:23:14 -08:00
David Arnold
a58be6f842 fix: have devshell respect it's loaded nix version 2022-02-23 15:23:14 -08:00
David Arnold
03b96d6f25 fix: polyfill flake.lock for pure evaluation mode 2022-02-23 15:23:14 -08:00
David Arnold
91a5764acf ref: tests are becoming a pkgs-less library 2022-02-23 15:23:14 -08:00
David Arnold
a2905735cc fix: make declaration of suites optional but throw a warning 2022-02-23 15:23:14 -08:00
David Arnold
466ea26553 imp: checks pass --show-trace flags 2022-02-23 15:23:14 -08:00
David Arnold
6efb2fbccf ref: make tests more useful 2022-02-23 15:23:14 -08:00
David Arnold
acff396977 examples/downstream: use latest digga/develop 2022-02-23 15:23:14 -08:00
David Arnold
ca822d87c9 fix jobs flake 2022-02-23 15:23:14 -08:00
David Arnold
4fe2f9b6ca fix: check-all 2022-02-23 15:23:14 -08:00
David Arnold
67df251929 ref: add proper downstream testing 2022-02-23 15:23:14 -08:00
David Arnold
7608f9585c ref: we love the unofficial flakes roadmap 2022-02-23 15:23:14 -08:00
David Arnold
a680bc2529 ref: ci to new shift-left testing strategy | please do TDD form now on 2022-02-23 15:23:14 -08:00
David Arnold
f685d7aa82 evalnix 2022-02-23 15:23:14 -08:00
David Arnold
defb97a834 fmt 2022-02-23 15:23:14 -08:00
David Arnold
3d0dfa9797 fix classicalDevos example 2022-02-23 15:23:14 -08:00
David Arnold
25bf8eefe2 ref: auxiliaries (checks, jobs, devshell)
Includes nix patch: https://github.com/NixOS/nix/pull/4641
2022-02-23 15:23:14 -08:00
David Arnold
e5ab98071d add groupByConfig example 2022-02-23 15:23:14 -08:00
David Arnold
e6c3497e79 mv fullFlake -> example 2022-02-23 15:23:14 -08:00
David Arnold
5a16e8f6e8 use config.lib.digga.mkBuild 2022-02-23 15:23:14 -08:00
David Arnold
3ce5283d4e ourlib -> config.lib.our 2022-02-23 15:23:14 -08:00
David Arnold
147f0f2b78 fix: maybe import well defined nix modules (with _file)
This is necesary since `fup` has gained a cleanup of its module exporter
that treats modules as paths or well-defeinde (with _file).

This is a better implementation for the work-around introduced in
b30d9660e2903e08bb10bea9921eee119af0b111
2022-02-23 15:23:14 -08:00
David Arnold
7fed72333f bump fup version (fixup for modules importer) 2022-02-23 15:23:14 -08:00
Pacman99
aa8eb909f5 flake: update deploy input 2022-02-23 15:23:14 -08:00
Pacman99
6a882ace4a flake: update lock file
should have been included in previous commit to drop follows usage
2022-02-23 15:23:14 -08:00
Pacman99
979b1bb723 flake: drop follows for nixos-generators input 2022-02-23 15:23:14 -08:00
David Arnold
3454756ce0 nixpkgs-fmt 2022-02-23 15:23:14 -08:00
David Arnold
2eb6f83262 fix: maybImport to also classic imports that peak for defualt.nix
such as `import ./pkgs`, actually loading `./pkgs/default.nix`
2022-02-23 15:23:14 -08:00
Pacman99
1fb87138c7 flk: don't set out path for nix build
./result is more obvious for users who've used nix build and then we
don't have to worry about file extensions, its already a folder with the
right files.
2022-02-23 15:23:14 -08:00
David Arnold
2eab4b0c88 the prefix hopeful trick did not work.
There seems no decent way to get file names from upstream, so
we can implement once an upstream interface is available.
2022-02-23 15:23:14 -08:00
David Arnold
a9ce10471d fix: store builds under ./builds, so .giignore can pick it up.
Name by host first, then by image type.

Hope for the best that -o is a prefix (when left with final /)
and the builder will do the right thing.
2022-02-23 15:23:14 -08:00
David Arnold
2f2a8a862d style 2022-02-23 15:23:14 -08:00
Pacman99
65ecc2cbf0 flk: add general build command, replace iso/doi 2022-02-23 15:23:14 -08:00
Pacman99
00d056f87e modules: add builds for nixos-generators formats 2022-02-23 15:23:14 -08:00
David Arnold
c119cbb031 bump: fup for flake-utils check-utils 2022-02-23 15:23:14 -08:00
David Arnold
9836d2aeeb add module importer (raker) 2022-02-23 15:23:14 -08:00
David Arnold
d38d316401 add test for overlay order 2022-02-23 15:23:14 -08:00
David Arnold
2c53cb09e2 fix: overlays order - internal, "raked" overlays last
By making sure raked (that typically is: "internal") are loaded
last, those internal overlays can override packages made available via
external overlays.

This is only relevant for overlays where order matters.
2022-02-23 15:23:14 -08:00
David Arnold
fa73f3713d !fixup fix: conflicting declaration error message utility
The imports already does set _file for us.
2022-02-23 15:23:14 -08:00
David Arnold
87833a33e4 fix: conflicting declaration error message utility
this commit produces:
```console
error: The option `networking.networkmanager.enable' has conflicting definition values:
       - In `/nix/store/7mnkd3pky8vhdb113jwm1yx86jpx5f9l-source/tests/fullFlake/profiles/core': true
       - In `/nix/store/7mnkd3pky8vhdb113jwm1yx86jpx5f9l-source/tests/fullFlake/hosts/NixOS.nix': false
```

instead of:
```console
error: The option `networking.networkmanager.enable' has conflicting definition values:
       - In `/nix/store/b6wbmpjx59bls58bgng7bip1q3pvl3pd-source/tests/fullFlake/profiles/core': true
       - In `<unknown-file>': false
```
2022-02-23 15:23:14 -08:00
Pacman99
6c610b3eed drop builderArgs and pull specialArgs from module 2022-02-23 15:23:14 -08:00
Pacman99
bce934a16f modules: export digga lib in config.lib.digga 2022-02-23 15:23:14 -08:00
Pacman99
90db38e4e9 Update Changelog for tag 2022-02-23 15:23:14 -08:00
Pacman99
82e94c8170 flake: update fup input
includes overlay fixes
2022-02-23 15:23:14 -08:00
Pacman99
ab10207b4b README: add contributing section 2022-02-23 15:23:14 -08:00
Pacman99
ef17475de5 flk: save digitalOcean image with .qcow2 extension 2022-02-23 15:23:13 -08:00
Narice
04a9d846f1 Changed extension of output link from iso command 2022-02-23 15:23:13 -08:00