mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-21 03:51:15 +02:00
8690978d7e
* feat: replace impermanence with preservation * fix: This module cannot be used with scripted initrd. * fix: permission for /var/lib/private * chore: boot.initrd.systemd.enable * docs: boot.initrd.luks.devices.<name>.fallbackToPassword is implied by systemd stage 1 * fix: typo
46 lines
1.1 KiB
Nix
46 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
|
|
name = "kubevirt-shoryu";
|
|
tags = [name "virt-shoryu"];
|
|
ssh-user = "root";
|
|
|
|
modules = {
|
|
nixos-modules =
|
|
(map mylib.relativeToRoot [
|
|
# common
|
|
"secrets/nixos.nix"
|
|
"modules/nixos/server/server.nix"
|
|
# host specific
|
|
"hosts/k8s/${name}"
|
|
])
|
|
++ [
|
|
{
|
|
modules.secrets.server.kubernetes.enable = true;
|
|
modules.secrets.preservation.enable = true;
|
|
}
|
|
];
|
|
# home-modules = map mylib.relativeToRoot [
|
|
# "home/linux/tui.nix"
|
|
# ];
|
|
};
|
|
|
|
systemArgs = modules // args;
|
|
in {
|
|
nixosConfigurations.${name} = mylib.nixosSystem systemArgs;
|
|
|
|
colmena.${name} =
|
|
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
|
|
|
|
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.iso;
|
|
}
|