diff --git a/hosts/default.nix b/hosts/default.nix index 39cab3fa..d2519d6e 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -32,9 +32,9 @@ inherit specialArgs; modules = [./monitoring/configuration.nix]; }; - ficolobuild = lib.nixosSystem { + ficolobuild3 = lib.nixosSystem { inherit specialArgs; - modules = [./ficolobuild/configuration.nix]; + modules = [./ficolobuild/build3.nix]; }; prbuilder = lib.nixosSystem { inherit specialArgs; diff --git a/hosts/ficolobuild/build3.nix b/hosts/ficolobuild/build3.nix new file mode 100644 index 00000000..3069afb2 --- /dev/null +++ b/hosts/ficolobuild/build3.nix @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2023-2024 Technology Innovation Institute (TII) +# SPDX-License-Identifier: Apache-2.0 +# +{ + self, + lib, + ... +}: { + imports = lib.flatten [ + (with self.nixosModules; [ + user-themisto + user-barna + ]) + ./builder.nix + ]; + + # build3 specific configuration + + networking.hostName = "build3"; + + # Trust Themisto Hydra user + nix.settings = { + trusted-users = ["root" "themisto" "barna"]; + }; +} diff --git a/hosts/ficolobuild/configuration.nix b/hosts/ficolobuild/builder.nix similarity index 90% rename from hosts/ficolobuild/configuration.nix rename to hosts/ficolobuild/builder.nix index dd4ec33d..637ae966 100644 --- a/hosts/ficolobuild/configuration.nix +++ b/hosts/ficolobuild/builder.nix @@ -21,7 +21,6 @@ user-hrosten user-jrautiola user-mkaapu - user-themisto user-tervis user-karim user-mika @@ -42,9 +41,4 @@ # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - - # Trust Themisto Hydra user - nix.settings = { - trusted-users = ["root" "themisto"]; - }; } diff --git a/tasks.py b/tasks.py index f2d33f30..f3a1f23a 100644 --- a/tasks.py +++ b/tasks.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII) +# SPDX-FileCopyrightText: 2023-2024 Technology Innovation Institute (TII) # SPDX-FileCopyrightText: 2023 Nix community projects # # SPDX-License-Identifier: MIT @@ -86,7 +86,7 @@ class TargetHost: ), "build3-ficolo": TargetHost( hostname="172.18.20.104", - nixosconfig="ficolobuild", + nixosconfig="ficolobuild3", ), "prbuilder": TargetHost( hostname="172.18.20.106",