You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
961 B
Nix
32 lines
961 B
Nix
9 years ago
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||
|
cfg = config.r6d.config-generator;
|
||
|
computers = config.r6d.computers;
|
||
|
profiles = config.r6d.profiles;
|
||
|
in
|
||
|
|
||
|
mkIf cfg.hydra-builder {
|
||
|
|
||
|
# Paquets
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
];
|
||
|
|
||
|
# Services
|
||
|
|
||
|
|
||
|
virtualisation.virtualbox.host.enable = true;
|
||
|
nix.gc.automatic = true;
|
||
|
|
||
|
users.users."hydrabuild" = {
|
||
|
description = "Execution des job hydra";
|
||
|
group = ["nixbld"];
|
||
|
isNormalUser = false;
|
||
|
|
||
|
openssh.authorizedKeys.keys = [
|
||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVMndtLDf++di38EE8rEG5QOCA5aKsBO/f0LIi1Ez87ZaNsjv9XvJW1f8Nt6KH+lSvB1Cp7QCRINawLavb714oZ248cuAu1Osq8lMSDnQlGqgJa+cgiww7PPvJU9YLkrx5LT0Suaskp64Iq4Ox1n+2zy2pIiFD/9Ueqmrt9GnztdQkkqYsGYMjNjY2PBFrkeCWhib9Y3t1eeWsugkegbNVFJtdU2AeqBiDT41dCne6WBJBoDy7wtP3a8ocYMv4G2ThUzLx0SOY5sDUTEQKgm7ncp4FRBSQBOiz1VanFrimKhNKtomY7Da8Ls31LpbDdnI6sauuSUtOvYb+h5QvWeFl root@pedro.dubronetwork.fr"
|
||
|
];
|
||
|
};
|
||
|
}
|