Commit graph

6 commits

Author SHA1 Message Date
Euan Kemp
3c61779d5c nixos/tests/k3s: address pr feedback 2021-10-25 17:43:27 -07:00
Euan Kemp
83ed4b46fd nixos/tests/k3s: nixpkgs-fmt 2021-10-23 18:34:10 -07:00
Euan Kemp
f20af9dbfb nixos/tests/k3s: make more idiomatic
For single-node tests, using machine is more idiomatic from what I
gather, so do that.

I do want multi-node tests, but those should be in different files.
2021-10-23 18:21:47 -07:00
Euan Kemp
3210ce7784 nixos/tests/k3s: cleanly shutdown on test success
When this test was written, I don't think the explicit '.shutdown' was
required, but it is now. Do so.
2021-10-23 18:06:09 -07:00
Dominik Xaver Hörl
25bef2d8f9 treewide: simplify pkgs.stdenv.lib -> pkgs.lib
The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
2021-01-10 20:12:06 +01:00
Euan Kemp
bc138f407f
nixos/k3s: add initial k3s service
* nixos/k3s: simplify config expression

* nixos/k3s: add config assertions and trim unneeded bits

* nixos/k3s: add a test that k3s works; minor module improvements

This is a single-node test. Eventually we should also have a multi-node
test to verify the agent bit works, but that one's more involved.

* nixos/k3s: add option description

* nixos/k3s: add defaults for token/serveraddr

Now that the assertion enforces their presence, we dont' need to use the typesystem for it.

* nixos/k3s: remove unneeded sudo in test

* nixos/k3s: add to test list
2020-04-17 16:39:54 +02:00