1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 08:02:21 +03:00
Commit Graph

1200 Commits

Author SHA1 Message Date
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
Pacman99
6c6e69d2d0 README: fix bors repository link 2022-02-23 15:23:13 -08:00
Pacman99
33328e3d68 evalArgs: switch suites type to coercedListOf
so suites get flattened as they used to
2022-02-23 15:23:13 -08:00
Pacman99
7f17b5bc9f tests: only add profilesTest if suites are defined
isoConfig: don't error if suites aren't passed
2022-02-23 15:23:13 -08:00
Pacman99
177f01ced0 tests: add proper check for rakeLeaves
also drop mkSuites test, which is now deprecated
2022-02-23 15:23:13 -08:00
Pacman99
e838f60e29 Replace profiles/suites with general importables
profiles and suites is created with the old mkProfileAttrs, this makes
the new auto-importing strategies backwards compatible. But warnings are
printed when using profiles and suites instructing you on how to switch
your profiles folder format and add suites to importables
2022-02-23 15:23:13 -08:00
Pacman99
271cfd0c18 re-add mkProfileAttrs with a deprecation message 2022-02-23 15:23:13 -08:00
Pacman99
f100c6dcf4 flake: update devshell input for importTOML 2022-02-23 15:23:13 -08:00
Pacman99
e6b9618a32 tests: add simple devshell test 2022-02-23 15:23:13 -08:00
Pacman99
878aea95ad export devshell modules 2022-02-23 15:23:12 -08:00
Pacman99
bf6a465789 evalArgs: add devshell namespace for modules
don't import modules
2022-02-23 15:22:57 -08:00
Pacman99
237e0bce9b rakeLeaves: create and use standard auto-importer
The function picks up `.nix` files and stops recursing when it hits
a folder with a `default.nix`
This allows it to be used to collect hosts, overlays, and profiles
2022-02-23 15:22:57 -08:00
Pacman99
8065740c86 shell: append overlays 2022-02-23 15:22:57 -08:00
Pacman99
d410c2f90d tests: add host build to checks output 2022-02-23 15:22:57 -08:00
Pacman99
181b8a42a4 evalArgs: create outputsBuilder option 2022-02-23 15:22:57 -08:00
Pacman99
a3c6bc7990 mkFlake: update to new fup outputsBuilder 2022-02-23 15:22:57 -08:00
Pacman99
7daa4d45b1 flake: update fup input
includes addition of outputsBuilder
2022-02-23 15:22:57 -08:00
GTrunSec
e5309ccab5 devshell: add ssh commands for secrets module 2022-02-23 15:22:57 -08:00
GTrunSec
d8d108ebf0 fix deploy-rs multi-arch 2022-02-23 15:22:56 -08:00
Pacman99
8b77cd1d5e Revert "shell: add packages from overlays to devshell"
This reverts commit be058ad58dd0e43c46138a073e94ca3c313401be.
2022-02-23 15:22:37 -08:00
Pacman99
aa8bf26e72 Update Changelog for tag 2022-02-23 15:22:07 -08:00
Pacman99
2796d59a84 flake: update utils input
includes api changes to fup
2022-02-23 15:22:07 -08:00
Pacman99
9113d8641e add devshellModules option to customize devshell 2022-02-23 15:22:07 -08:00
Pacman99
b144f0bc48 README: fix links and add License section 2022-02-23 15:22:07 -08:00
Dusk Banks
be23ab253c shell/flk: sudo nixos-generate-config
```
$ btrfs subvol show / >/dev/null; printf "%s\n" "$?"
ERROR: Could not search B-tree: Operation not permitted
1
```

Btrfs's `ioctl()` `BTRFS_IOC_TREE_SEARCH` requires elevation.
`btrfs subvol show <path>` may be called by `nixos-generate-config`, and
if `btrfs subvol show <path>` fails then `nixos-generate-config` fails.

Fixes `flk up` failures due to the presence of Btrfs volumes.
2022-02-23 15:22:07 -08:00
Pacman99
6be60aa422 add github actions and bors configuration 2022-02-23 15:22:07 -08:00
Pacman99
0bbc1decfe test mkFlake with a full flake similar to devos 2022-02-23 15:22:07 -08:00
Pacman99
0c98c652b3 shell: use eval-config.nix with pkgs.path
This will always work and doesn't rely on fup features
2022-02-23 15:22:07 -08:00