hydra: add nixmsi as builder
This commit is contained in:
parent
5376be449f
commit
0888579272
|
@ -319,14 +319,7 @@
|
||||||
nixosImages.phone = nixosConfigurations.phone.config.mobile.outputs.disk-image;
|
nixosImages.phone = nixosConfigurations.phone.config.mobile.outputs.disk-image;
|
||||||
nixosImages.phone-fastboot = nixosConfigurations.phone.config.mobile.outputs.android.android-fastboot-image;
|
nixosImages.phone-fastboot = nixosConfigurations.phone.config.mobile.outputs.android.android-fastboot-image;
|
||||||
|
|
||||||
hydraJobs = let
|
hydraJobs = {
|
||||||
addMeta = x: x // {
|
|
||||||
meta = (x.meta or {}) // {
|
|
||||||
timeout = 60 * 60 * 10;
|
|
||||||
maxSilent = 60 * 60 * 10;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in builtins.mapAttrs (_: addMeta) {
|
|
||||||
server.${config.server.system} = nixosConfigurations.server.config.system.build.toplevel;
|
server.${config.server.system} = nixosConfigurations.server.config.system.build.toplevel;
|
||||||
workstation.${config.nixmsi.system} = nixosConfigurations.nixmsi.config.system.build.toplevel;
|
workstation.${config.nixmsi.system} = nixosConfigurations.nixmsi.config.system.build.toplevel;
|
||||||
router.${config.router-emmc.system} = nixosConfigurations.router-emmc-cross.config.system.build.toplevel;
|
router.${config.router-emmc.system} = nixosConfigurations.router-emmc-cross.config.system.build.toplevel;
|
||||||
|
|
|
@ -151,8 +151,13 @@
|
||||||
programs.ccache.enable = true;
|
programs.ccache.enable = true;
|
||||||
services.sshd.enable = true;
|
services.sshd.enable = true;
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
users.users.hydra-builder = {
|
||||||
|
uid = 1001;
|
||||||
|
isNormalUser = true;
|
||||||
|
};
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
netrc-file = "/secrets/netrc";
|
netrc-file = "/secrets/netrc";
|
||||||
|
trusted-users = [ "hydra-builder" ];
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://binarycache.pavluk.org"
|
"https://binarycache.pavluk.org"
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
|
|
|
@ -146,6 +146,16 @@ in {
|
||||||
supportedFeatures = [ "kvm" "local" "nixos-test" "benchmark" "big-parallel" ];
|
supportedFeatures = [ "kvm" "local" "nixos-test" "benchmark" "big-parallel" ];
|
||||||
systems = [ "builtin" "x86_64-linux" "aarch64-linux" ];
|
systems = [ "builtin" "x86_64-linux" "aarch64-linux" ];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
hostName = cfg.laptopHostname;
|
||||||
|
maxJobs = 1;
|
||||||
|
speedFactor = 2;
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
systems = [ "x86_64-linux" ];
|
||||||
|
supportedFeatures = [ "kvm" "nixos-test" "benchmark" "big-parallel" ];
|
||||||
|
sshKey = "/secrets/hydra-builder-key";
|
||||||
|
sshUser = "hydra-builder";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
# limit CI CPU usage since I'm running everything else off this server too
|
# limit CI CPU usage since I'm running everything else off this server too
|
||||||
systemd.services.nix-daemon.serviceConfig.CPUQuota = "100%";
|
systemd.services.nix-daemon.serviceConfig.CPUQuota = "100%";
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
default = "pavluk.org";
|
default = "pavluk.org";
|
||||||
description = "domain name";
|
description = "domain name";
|
||||||
};
|
};
|
||||||
|
laptopHostname = mkOption {
|
||||||
|
type = with types; nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = "laptop hostname";
|
||||||
|
};
|
||||||
keycloakRealm = mkOption {
|
keycloakRealm = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "master";
|
default = "master";
|
||||||
|
|
Loading…
Reference in a new issue