mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-05 12:06:20 +01:00
The k3s-test workers never ran (they were stuck waiting for volume
binding) and will be re-added as microVMs, so remove their KubeVirt
configs and everything that only existed for KubeVirt guests:
- hosts/k8s/k3s-test-1-worker-{1,2,3} and their outputs
- lib/genKubeVirtGuestModule.nix and lib/genK3sAgentModule.nix (the
latter was only used by the workers)
- the KubeVirt image upload recipes (upload-vm, upload-idols,
upload-k3s-test) and the kubevirt image package in the idols outputs
- refresh the docs; keep only accurate historical mentions (e.g. the
restic backup path must stay as it is)
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
# NOTE: the args not used in this file CAN NOT be removed!
|
|
# because haumea pass argument lazily,
|
|
# and these arguments are used in the functions like `mylib.nixosSystem`, `mylib.colmenaSystem`, etc.
|
|
inputs,
|
|
lib,
|
|
mylib,
|
|
myvars,
|
|
system,
|
|
genSpecialArgs,
|
|
...
|
|
}@args:
|
|
let
|
|
# 星野 瑠美衣, Hoshino Rubii
|
|
name = "ruby";
|
|
tags = [
|
|
name
|
|
"homelab-operation"
|
|
];
|
|
ssh-user = "root";
|
|
|
|
modules = {
|
|
nixos-modules =
|
|
(map mylib.relativeToRoot [
|
|
# common
|
|
"secrets/nixos.nix"
|
|
"modules/nixos/server/server.nix"
|
|
"modules/nixos/server/qemu-guest-hardware-configuration.nix"
|
|
# host specific
|
|
"hosts/idols-${name}"
|
|
])
|
|
++ [
|
|
];
|
|
home-modules = map mylib.relativeToRoot [
|
|
# host specific
|
|
"home/hosts/linux/idols-${name}.nix"
|
|
];
|
|
};
|
|
|
|
systemArgs = modules // args;
|
|
in
|
|
{
|
|
nixosConfigurations.${name} = mylib.nixosSystem systemArgs;
|
|
|
|
colmena.${name} = mylib.colmenaSystem (systemArgs // { inherit tags ssh-user; });
|
|
|
|
# nixos tests
|
|
packages."${name}-nixos-tests" = import ../nixos-tests/idols-ruby.nix systemArgs;
|
|
}
|