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

1077 Commits

Author SHA1 Message Date
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
Narice
1ef543795b Changed output from nix build for doi command 2022-02-23 15:23:13 -08:00
Narice
9ac1382b57 Changed flk iso command so that the link to the result is created as iso/HOST 2022-02-23 15:23:13 -08:00
Narice
ad6460a7e7 On flk vm, create a bash script to run the vm 2022-02-23 15:23:13 -08:00
Narice
78874d2512 After vm run, delete tmp directory when empty 2022-02-23 15:23:13 -08:00
Narice
518ee1b0fe Fusionned vm and vm-run and made vm run a one shot vm 2022-02-23 15:23:13 -08:00
Narice
7f4d393914 Delete disk image for host before running the vm 2022-02-23 15:23:13 -08:00
Narice
6b2582c15f Added vm and vm-run commands to flk.sh 2022-02-23 15:23:13 -08:00
Jarosław Wygoda
61321c40cf Add doi flk command 2022-02-23 15:23:13 -08:00
Pacman99
124fb604ef flake: update utils input 2022-02-23 15:23:13 -08:00
David Arnold
07317f78a2 fix: flk usage of lock update 2022-02-23 15:23:13 -08:00
Pacman99
f921586ac2 doc: update options documentation 2022-02-23 15:23:13 -08:00
Pacman99
2c7efc4cd3 flake: update fup
includes fixes for double applied overlays problem
2022-02-23 15:23:13 -08:00
Pacman99
b5b4be4d83 shell/flk: add repl sub-command 2022-02-23 15:23:13 -08:00
Pacman99
1fc53c8ebc modules: generate registry and add fup-repl to env 2022-02-23 15:23:13 -08:00
Pacman99
52566f41d8 flake: use fup for non-lib outputs 2022-02-23 15:23:13 -08:00
Pacman99
83a98a46b9 importers: filter out empty attrsets 2022-02-23 15:23:13 -08:00
Pacman99
048b886435 use self.inputs instead of inputs 2022-02-23 15:23:13 -08:00
David Arnold
95734468e8 test: assert com.example.myhost 2022-02-23 15:23:13 -08:00
David Arnold
b136529b02 bump fup (with latest reverseDomainName parsing) 2022-02-23 15:23:13 -08:00
David Arnold
c43d7641fa imp: make importers truely recursive
- hostnames are construed from a reverse DNS notation of folder names

BREAKING CHANGE (without practical impact):

fup needs to be udpated to parse the reverse DNS notation back into
a hostname DNS label + a DNS domain (to set networking.domain).

However, since until now, no recursive hosts where allowed, this
can be safely done soonishly.
2022-02-23 15:23:13 -08:00
Pacman99
272a706dc5 evalArgs: switch externalModules to coercedListOf 2022-02-23 15:23:13 -08:00
David Arnold
83deab4024 ref: rakeLeaves use explicit sieve 2022-02-23 15:23:13 -08:00
David Arnold
639863bebb ref: drop safeReadDir 2022-02-23 15:23:13 -08:00
David Arnold
8a21557baa imp: make fullFlake debuggable through top level repl
at:

checks.<system>.checksTest.fullFlake
2022-02-23 15:23:13 -08:00
David Arnold
fa2d67490f ref: lib-tets rm unused files 2022-02-23 15:23:13 -08:00
David Arnold
cb627e067f ref: encapsulate lib tests into folder 2022-02-23 15:23:13 -08:00