2018-11-12 11:26:22 +01:00
|
|
|
{
|
2023-02-07 18:24:28 +01:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2022-10-31 11:04:38 +01:00
|
|
|
nixpkgs.config.packageOverrides = pkgs:
|
|
|
|
with pkgs; {
|
2023-02-07 18:24:28 +01:00
|
|
|
nixPath =
|
|
|
|
(import ../../../default.nix {
|
|
|
|
versionsPath = ./versions.nix;
|
|
|
|
})
|
|
|
|
.nixPath;
|
2022-10-31 11:04:38 +01:00
|
|
|
};
|
2023-02-07 18:24:28 +01:00
|
|
|
home-manager.users.steveej = import ../../../home-manager/configuration/text-minimal.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
2018-11-13 00:54:04 +01:00
|
|
|
|
2023-02-07 18:24:28 +01:00
|
|
|
nix.buildMachines = [
|
|
|
|
{
|
|
|
|
hostName = "localhost";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
|
|
|
|
maxJobs = 4;
|
|
|
|
}
|
|
|
|
];
|
2020-10-17 16:17:09 +02:00
|
|
|
|
|
|
|
services.hydra = {
|
2019-01-26 23:59:52 +01:00
|
|
|
enable = false;
|
2018-11-18 14:43:34 +01:00
|
|
|
hydraURL = "http://localhost:3000"; # externally visible URL
|
2023-02-07 18:24:28 +01:00
|
|
|
notificationSender = "hydra@${config.networking.hostName}.stefanjunker.de"; # e-mail of hydra service
|
2018-11-18 14:43:34 +01:00
|
|
|
# a standalone hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
|
2023-02-07 18:24:28 +01:00
|
|
|
buildMachinesFiles = [];
|
2018-11-18 14:43:34 +01:00
|
|
|
# you will probably also want, otherwise *everything* will be built from scratch
|
|
|
|
useSubstitutes = true;
|
|
|
|
};
|
|
|
|
|
2018-11-18 01:08:57 +01:00
|
|
|
services.gitlab-runner = {
|
2022-11-03 16:48:06 +01:00
|
|
|
enable = false;
|
2018-11-18 01:08:57 +01:00
|
|
|
|
2023-02-07 18:24:28 +01:00
|
|
|
extraPackages = with pkgs; [bash gitlab-runner nix gitFull git-crypt];
|
2018-11-18 01:08:57 +01:00
|
|
|
|
2020-10-17 16:17:09 +02:00
|
|
|
concurrent = 2;
|
|
|
|
checkInterval = 0;
|
|
|
|
services = {
|
|
|
|
nixRunner = {
|
|
|
|
executor = "shell";
|
|
|
|
runUntagged = true;
|
2023-02-07 18:24:28 +01:00
|
|
|
registrationConfigFile = "/etc/secrets/gitlab-runner/nix-runner.registration";
|
|
|
|
tagList = ["nix"];
|
2020-10-17 16:17:09 +02:00
|
|
|
};
|
|
|
|
};
|
2018-11-18 01:08:57 +01:00
|
|
|
};
|
2018-11-12 11:26:22 +01:00
|
|
|
}
|