mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 00:48:27 +02:00
refactor: centrally manage the network configuration of all hosts in homelab
feat: new host - tailscalw-gw
This commit is contained in:
@@ -80,6 +80,11 @@ in {
|
||||
idol_kana_modules
|
||||
{host_tags = idol_kana_tags;}
|
||||
]);
|
||||
tailscale_gw = colmenaSystem (attrs.mergeAttrsList [
|
||||
x64_base_args
|
||||
homelab_tailscale_gw_modules
|
||||
{host_tags = homelab_tailscale_gw_tags;}
|
||||
]);
|
||||
|
||||
# riscv64 SBCs
|
||||
nozomi = colmenaSystem (attrs.mergeAttrsList [
|
||||
|
||||
@@ -23,6 +23,8 @@ in {
|
||||
aquamarine = nixosSystem (idol_aquamarine_modules // base_args);
|
||||
ruby = nixosSystem (idol_ruby_modules // base_args);
|
||||
kana = nixosSystem (idol_kana_modules // base_args);
|
||||
|
||||
tailscale_gw = nixosSystem (homelab_tailscale_gw_modules // base_args);
|
||||
};
|
||||
|
||||
# take system images for idols
|
||||
@@ -44,6 +46,8 @@ in {
|
||||
"aquamarine"
|
||||
"ruby"
|
||||
"kana"
|
||||
|
||||
"tailscale_gw"
|
||||
]
|
||||
# generate proxmox image for virtual machines without desktop environment
|
||||
(host: self.nixosConfigurations.${host}.config.formats.proxmox)
|
||||
|
||||
@@ -82,6 +82,16 @@ in {
|
||||
};
|
||||
idol_kana_tags = ["dist-build" "kana"];
|
||||
|
||||
homelab_tailscale_gw_modules = {
|
||||
nixos-modules = [
|
||||
../hosts/homelab_tailscale_gw
|
||||
../modules/nixos/server/server.nix
|
||||
../modules/nixos/server/proxmox-hardware-configuration.nix
|
||||
];
|
||||
# home-module.imports = [];
|
||||
};
|
||||
homelab_tailscale_gw_tags = ["tailscale-gw"];
|
||||
|
||||
# 森友 望未, Moritomo Nozomi
|
||||
rolling_nozomi_modules = {
|
||||
nixos-modules = [
|
||||
|
||||
Reference in New Issue
Block a user