move all host-specific configuration to hosts directory

This commit is contained in:
Katherina Walshe-Grey 2024-09-17 17:22:58 +01:00
parent 7189fae109
commit f4da07c4e6
4 changed files with 16 additions and 31 deletions

View file

@ -57,36 +57,9 @@
kilgharrah.imports = [ ./hosts/kilgharrah ]; kilgharrah.imports = [ ./hosts/kilgharrah ];
tohru.imports = [ ./hosts/tohru ]; tohru.imports = [ ./hosts/tohru ];
yevaud.imports = [ ./hosts/yevaud ];
yevaud = { name, nodes, ... }: { orm.imports = [ ./hosts/orm ];
networking.hostId = "09673d65"; kalessin.imports = [ ./hosts/kalessin ];
deployment.targetHost = "yevaud.birdsong.network";
imports = [
./hosts/yevaud/configuration.nix
];
};
orm = { name, nodes, ... }: {
networking.hostId = "00000000";
deployment.targetHost = "orm.birdsong.network";
imports = [
./hosts/orm/configuration.nix
];
};
kalessin = { name, nodes, ... }: {
networking.hostId = "534b538e";
deployment = {
targetHost = "kalessin.birdsong.network";
buildOnTarget = true;
};
imports = [
./hosts/kalessin/configuration.nix
];
};
}; };
# TODO: have this work on other systems too # TODO: have this work on other systems too

View file

@ -5,6 +5,12 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
networking.hostId = "534b538e";
deployment = {
targetHost = "kalessin.birdsong.network";
buildOnTarget = true;
};
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;

View file

@ -5,9 +5,12 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
networking.hostId = "00000000";
deployment.targetHost = "orm.birdsong.network";
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
users.users.qenya.extraGroups = [ "wheel" ]; users.users.qenya.extraGroups = [ "wheel" ];
qenya.base-server.enable = true; qenya.base-server.enable = true;

View file

@ -5,6 +5,9 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
networking.hostId = "09673d65";
deployment.targetHost = "yevaud.birdsong.network";
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;