old
1{
2 # NOTE: the args not used in this file CAN NOT be removed!
3 # because haumea pass argument lazily,
4 # and these arguments are used in the functions like `mylib.nixosSystem`, `mylib.colmenaSystem`, etc.
5 inputs,
6 lib,
7 myvars,
8 mylib,
9 system,
10 genSpecialArgs,
11 ...
12} @ args: let
13 # Pardofelis - Codename "Reverie", 13th of Flame-Chasers
14 name = "pardofelis";
15 tags = ["pardo" "vps"];
16 ssh-user = "root";
17
18 modules = {
19 nixos-modules = map mylib.relativeToRoot [
20 # common
21 "secrets/nixos.nix"
22 "modules/nixos/server/x86_64.nix"
23 "options/nixos/default.nix"
24 "hosts/general.nix"
25 # host specific
26 "hosts/chaser-${name}"
27 ];
28 home-modules = map mylib.relativeToRoot [
29 "home/linux/core.nix"
30 "options/home/default.nix"
31 ];
32 };
33
34 systemArgs = modules // args;
35in {
36 nixosConfigurations.${name} = mylib.nixosSystem systemArgs;
37
38 colmena.${name} =
39 mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
40}