Skip to content

Commit

Permalink
hosts: move azure host configs to subdir
Browse files Browse the repository at this point in the history
Move azure nix host configurations to their own subdirectory to avoid
confusion with the ficolo (e.g. 'binarycache') and azure
('binary-cache') nix configurations.

Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten committed Feb 7, 2024
1 parent d0061ef commit 58af59f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
...
}: {
imports = [
../azure-common-2.nix
../../azure-common-2.nix
self.nixosModules.service-openssh
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
...
}: {
imports = [
../azure-common-2.nix
../../azure-common-2.nix
self.nixosModules.service-openssh
self.nixosModules.service-remote-build
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'';
in {
imports = [
../azure-common-2.nix
../../azure-common-2.nix
self.nixosModules.service-openssh
];

Expand Down
24 changes: 12 additions & 12 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,21 @@
# make self and inputs available in nixos modules
specialArgs = {inherit self inputs;};
in {
binarycache = lib.nixosSystem {
az-binary-cache = lib.nixosSystem {
inherit specialArgs;
modules = [./binarycache/configuration.nix];
modules = [./azure/binary-cache/configuration.nix];
};
az-builder = lib.nixosSystem {
inherit specialArgs;
modules = [./azure/builder/configuration.nix];
};
binary-cache = lib.nixosSystem {
az-jenkins-controller = lib.nixosSystem {
inherit specialArgs;
modules = [./binary-cache/configuration.nix];
modules = [./azure/jenkins-controller/configuration.nix];
};
builder = lib.nixosSystem {
binarycache = lib.nixosSystem {
inherit specialArgs;
modules = [./builder/configuration.nix];
modules = [./binarycache/configuration.nix];
};
ficolobuild3 = lib.nixosSystem {
inherit specialArgs;
Expand All @@ -39,17 +43,13 @@
inherit specialArgs;
modules = [./ficolobuild/build4.nix];
};
jenkins-controller = lib.nixosSystem {
monitoring = lib.nixosSystem {
inherit specialArgs;
modules = [./jenkins-controller/configuration.nix];
modules = [./monitoring/configuration.nix];
};
prbuilder = lib.nixosSystem {
inherit specialArgs;
modules = [./prbuilder/configuration.nix];
};
monitoring = lib.nixosSystem {
inherit specialArgs;
modules = [./monitoring/configuration.nix];
};
};
}
2 changes: 1 addition & 1 deletion terraform/binary-cache.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module "binary_cache_image" {
source = "./modules/azurerm-nix-vm-image"

nix_attrpath = "outputs.nixosConfigurations.binary-cache.config.system.build.azureImage"
nix_attrpath = "outputs.nixosConfigurations.az-binary-cache.config.system.build.azureImage"
nix_entrypoint = "${path.module}/.."

name = "binary-cache"
Expand Down
2 changes: 1 addition & 1 deletion terraform/builder.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module "builder_image" {
source = "./modules/azurerm-nix-vm-image"

nix_attrpath = "outputs.nixosConfigurations.builder.config.system.build.azureImage"
nix_attrpath = "outputs.nixosConfigurations.az-builder.config.system.build.azureImage"
nix_entrypoint = "${path.module}/.."

name = "builder"
Expand Down
2 changes: 1 addition & 1 deletion terraform/jenkins-controller.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module "jenkins_controller_image" {
source = "./modules/azurerm-nix-vm-image"

nix_attrpath = "outputs.nixosConfigurations.jenkins-controller.config.system.build.azureImage"
nix_attrpath = "outputs.nixosConfigurations.az-jenkins-controller.config.system.build.azureImage"
nix_entrypoint = "${path.module}/.."

name = "jenkins-controller"
Expand Down

0 comments on commit 58af59f

Please sign in to comment.