mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-26 19:31:31 +01:00
feat: add riscv64 cluster - rolling girls
This commit is contained in:
@@ -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 []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user