feat: add riscv64 cluster - rolling girls

This commit is contained in:
Ryan Yin
2023-08-16 01:22:15 +08:00
parent f682523804
commit f5c1148c94
11 changed files with 471 additions and 14 deletions

View File

@@ -4,15 +4,16 @@
home-manager,
specialArgs,
nixos-modules,
home-module,
home-module ? null,
host_tags,
targetUser ? specialArgs.username,
}: let
username = specialArgs.username;
in
{ name, nodes, ... }: {
deployment = {
targetHost = name; # hostName or IP address
targetUser = username;
targetUser = targetUser;
tags = host_tags;
};
@@ -26,7 +27,7 @@ in
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
nix.nixPath = ["/etc/nix/inputs"];
}
] ++ (if (home-module != null) then [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
@@ -35,5 +36,5 @@ in
home-manager.extraSpecialArgs = specialArgs;
home-manager.users."${username}" = home-module;
}
];
] else []);
}