mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-20 07:51:22 +02:00
* feat: new host - idols-akane * fix: missing efi files * fix: efi partition - permission issue
43 lines
888 B
Nix
43 lines
888 B
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
|
|
# 黒川 茜, Kurokawa Akane
|
|
name = "akane";
|
|
tags = [
|
|
name
|
|
"homelab-app"
|
|
];
|
|
ssh-user = "root";
|
|
|
|
modules = {
|
|
nixos-modules =
|
|
(map mylib.relativeToRoot [
|
|
# common
|
|
"secrets/nixos.nix"
|
|
"modules/nixos/server/server-aarch64.nix"
|
|
"modules/nixos/server/qemu-guest.nix"
|
|
# host specific
|
|
"hosts/idols-${name}"
|
|
])
|
|
++ [
|
|
];
|
|
};
|
|
|
|
systemArgs = modules // args;
|
|
in
|
|
{
|
|
nixosConfigurations.${name} = mylib.nixosSystem systemArgs;
|
|
|
|
colmena.${name} = mylib.colmenaSystem (systemArgs // { inherit tags ssh-user; });
|
|
}
|