Commit graph

898 commits

Author SHA1 Message Date
6257ad5bd1
factor out to nixos.nix 2025-08-24 20:27:54 +02:00
167d38ab9a
rm users 2025-08-24 20:15:22 +02:00
55912c0c35
simplify grub 2025-08-24 20:14:54 +02:00
fb13af9260
rm users 2025-08-24 20:10:44 +02:00
9dca16d6b7
reenable ipv6 2025-08-24 20:07:08 +02:00
94a0e930e7
reenable firewall 2025-08-24 20:04:02 +02:00
e090884352
rm comments 2025-08-24 20:00:23 +02:00
975cf8a200
rm getty 2025-08-24 20:00:13 +02:00
33da4d6e46
mv attempts 2025-08-24 20:00:09 +02:00
aa0e7e2a42
download-attempts: settle for just targetNode 2025-08-24 19:53:30 +02:00
a2f8527f83
rm comment 2025-08-24 19:45:45 +02:00
0217b292c8
restore imports 2025-08-24 19:45:40 +02:00
cbec8fa3fc
dedupe nixosTest.nix 2025-08-24 19:26:16 +02:00
50e1a768e7
qemu guest 2025-08-24 18:32:12 +02:00
5a02027d48
grub 2025-08-24 18:31:34 +02:00
2af6817cd8
auto login 2025-08-24 18:30:52 +02:00
20557422e9
networking 2025-08-24 18:30:43 +02:00
4b85628ab1
users 2025-08-24 18:27:19 +02:00
03cbb4738d
handle test outcome 2025-08-24 18:26:42 +02:00
9769e1714c
specialArgs: sources 2025-08-24 18:25:00 +02:00
10ba2ee1e6
nix in tests: download-attempts = 1 2025-08-24 18:21:38 +02:00
b7cf39534f
ensure inputs 2025-08-24 18:19:53 +02:00
ee6b990144
rm paste 2025-08-24 18:18:49 +02:00
fe0edd897b
move stuff not needed in test out 2025-08-24 18:18:26 +02:00
081ae1ad07
ensure availability of needed inputs 2025-08-24 18:15:36 +02:00
3ae1235461
reduce download attempts in test 2025-08-24 18:14:26 +02:00
85cbdd945b
settle for hello, ditching cowsay 2025-08-24 18:13:22 +02:00
d51f8fcf16
move imports from paste to targetNode to increase parity between paste and nixosTest 2025-08-24 17:52:06 +02:00
ae06cfc417
ditch superfluous substituters 2025-08-24 17:52:06 +02:00
b7e34de835
pasteable command for trying without rebuilding vm 2025-08-24 17:52:06 +02:00
458e565e4e
add keys 2025-08-24 17:52:06 +02:00
0d36f32190
wip: use ssh in test 2025-08-24 17:52:06 +02:00
5c47da3b0b
add deployment method: ssh 2025-08-24 17:52:06 +02:00
8e50fd675f
un-nixops 2025-08-24 17:52:06 +02:00
b29b8bfb84
scaffold deployment/check/data-model from ./basic
modelify
2025-08-24 17:52:06 +02:00
d67f5a2b7d
allow different deployment types 2025-08-24 17:51:37 +02:00
4262a92741
Merge pull request 'move nixops4Deployment class' (#6) from kiara/Fediversity:data-model-fix-root-class into deployment-data-model-with-tests
Reviewed-on: #6
Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2025-08-24 17:51:37 +02:00
e5b08faa1b
put config stuff in an attrset 2025-08-24 17:51:37 +02:00
c0b8dbbeeb
move nixops4Deployment class 2025-08-24 17:51:37 +02:00
1048ac674e
fix linter gripes 2025-08-24 17:51:37 +02:00
d1d152d2df
add explanatory comment 2025-08-24 17:51:37 +02:00
76a07a17ad
implement and test data model for runtime environments 2025-08-24 17:51:37 +02:00
f76d953b1f
generalize function type 2025-08-24 17:51:37 +02:00
1f99a4c6c3 listToAttrs o map o attrsToListmapAttrs' (#489)
Reviewed-on: Fediversity/Fediversity#489
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-08-01 13:09:26 +02:00
588bb77a94 Infra: expose and use checks for vmOptions and nixosConfigurations (#488)
Following Fediversity/Fediversity#478 (comment), here is a PR that plugs the infra's `vmOptions` and `nixosConfigurations` outputs into flake checks, instead of calling random Nix commands from the CI. There is still a bit of magic in the CI, but that's because we don't have yet a Nix-aware CI that exposes one job per flake check.

Reviewed-on: Fediversity/Fediversity#488
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-07-31 15:41:02 +02:00
df3a070fa4 Infra: get rid of makeResourceModule (#485)
Reviewed-on: Fediversity/Fediversity#485
Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-07-31 00:49:00 +02:00
be72b82875 Link to upstreaming PR for lib.types.fileset (#487)
Reviewed-on: Fediversity/Fediversity#487
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-07-30 13:25:22 +02:00
1b66028f32 Fix infra and add more tests (#478)
This PR contains a bunch of small fixes having to do with infra code. The goal is not to fix everything as that would require a full rewrite. Instead, we fix just what is necessary to get some testing going on. Once that is available, we will be able to work on a full refactor with more guarantees. Something of note is that most of the difficulty was to find code that would make both `nixops4 apply` _and_ `nix build .#nixosConfigurations.<machine>` happy. The takeaway is that the tests that we are adding now will not catch a whole class of tests having to do with how NixOps4 wires up the resources. Still, this is probably less significant as we are supposed to use NixOps4 every now and then.

The commits should be read separately.

Reviewed-on: Fediversity/Fediversity#478
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-07-30 12:31:03 +02:00
4509d277d3 move arguments from _module.args to specialArgs (#469)
Reviewed-on: Fediversity/Fediversity#469
Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
2025-07-23 18:12:55 +02:00
e488230d7b updater: make npins command verbose (#477)
Reviewed-on: Fediversity/Fediversity#477
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
2025-07-19 13:00:33 +02:00