tv: configure stockholm for buildbot
This commit is contained in:
parent
4fc9f53f7a
commit
954996f78f
@ -1,20 +1,24 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with import <stockholm/lib>;
|
with import <stockholm/lib>;
|
||||||
|
{ config, lib, pkgs, ... }: let
|
||||||
{
|
builder = if getEnv "dummy_secrets" == "true"
|
||||||
|
then "buildbot"
|
||||||
|
else "tv";
|
||||||
|
in {
|
||||||
krebs.enable = true;
|
krebs.enable = true;
|
||||||
|
|
||||||
krebs.build = {
|
krebs.build = {
|
||||||
user = config.krebs.users.tv;
|
user = config.krebs.users.tv;
|
||||||
source = let inherit (config.krebs.build) host; in {
|
source = let inherit (config.krebs.build) host; in {
|
||||||
nixos-config.symlink = "stockholm/tv/1systems/${host.name}.nix";
|
nixos-config.symlink = "stockholm/tv/1systems/${host.name}.nix";
|
||||||
secrets.file =
|
secrets.file = getAttr builder {
|
||||||
if getEnv "dummy_secrets" == "true"
|
buildbot = toString <stockholm/tv/dummy_secrets>;
|
||||||
then toString <stockholm/tv/dummy_secrets>
|
tv = "/home/tv/secrets/${host.name}";
|
||||||
else "/home/tv/secrets/${host.name}";
|
};
|
||||||
secrets-common.file = "/home/tv/secrets/common";
|
secrets-common.file = "/home/tv/secrets/common";
|
||||||
stockholm.file = "/home/tv/stockholm";
|
stockholm.file = getAttr builder {
|
||||||
|
buildbot = getEnv "PWD";
|
||||||
|
tv = "/home/tv/stockholm";
|
||||||
|
};
|
||||||
nixpkgs.git = {
|
nixpkgs.git = {
|
||||||
url = https://github.com/NixOS/nixpkgs;
|
url = https://github.com/NixOS/nixpkgs;
|
||||||
ref = "412b0a17aa2975e092c7ab95a38561c5f82908d4"; # nixos-17.03
|
ref = "412b0a17aa2975e092c7ab95a38561c5f82908d4"; # nixos-17.03
|
||||||
|
Loading…
Reference in New Issue
Block a user