Compare commits
5 Commits
extraction
...
2016-10-25
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b04c2edb0 | |||
| 2982725e0b | |||
| 9e8d3b24b3 | |||
| dba3a46ebd | |||
| d6bfe1c706 |
@@ -16,3 +16,8 @@ case "$TERM" in
|
||||
xterm) TERM=xterm-256color;;
|
||||
screen) TERM=screen-256color;;
|
||||
esac
|
||||
|
||||
# info gnupg, invocate gpg agent
|
||||
GPG_TTY=$(tty)
|
||||
export GPG_TTY
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ in
|
||||
p7zip # compression de fichier
|
||||
parted # partitionnement de disque
|
||||
pciutils
|
||||
pinentry # pour taper les mots de passe gpg
|
||||
psmisc # fournis les utilitaires comme killall, fuser, pstree
|
||||
python # python -- python -m SimpleHTTPServer 8000
|
||||
python34Packages.glances # monitoring
|
||||
@@ -56,6 +57,7 @@ in
|
||||
];
|
||||
shellAliases = {
|
||||
byobu = "byobu-tmux";
|
||||
gpg = "gpg2";
|
||||
jacques-a-dit = "sudo";
|
||||
tree = "tree -C";
|
||||
tree1 = "tree -d -L 1";
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
####################################### HYDRA
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
|
||||
# une fois installé :
|
||||
# 1. créer chef SSH : ssh-keygen -C "hydra@pedro.dubronetwork.fr" -N "" -f /etc/nixos/id_buildfarm
|
||||
# 2. récupérer la clef publique du serveur ssh : ssh-keyscan localhost + l'ajouter dans les knownHosts
|
||||
# 2. créer un utilisateur
|
||||
# su - hydra
|
||||
# hydra-create-user jpierre03 --password toto --role 'admin'
|
||||
# accessible à hydra.pedro.dubnronetwork.fr
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
hydraURL = "http://hydra.pedro.dubronetwork.fr";
|
||||
notificationSender = "hydra@${config.networking.hostName}";
|
||||
listenHost = "localhost";
|
||||
minimumDiskFree = 50; # Go
|
||||
};
|
||||
|
||||
programs.ssh.knownHosts."pedro.dubronetwork.fr".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM7fjo2ysLqlfSo6BKnc6I6m1ayoPrbwEEyTKZmUzsOD";
|
||||
nix = {
|
||||
distributedBuilds = true;
|
||||
buildMachines = [
|
||||
{ hostName = "pedro.dubronetwork.fr"; maxJobs = 2; speedFactor = 10; sshKey = "/etc/nixos/id_buildfarm"; sshUser = "root"; system = "x86_64-linux"; }
|
||||
];
|
||||
extraOptions = "auto-optimise-store = true";
|
||||
};
|
||||
# nix.gc = {
|
||||
# automatic = true;
|
||||
#};
|
||||
}
|
||||
@@ -19,7 +19,7 @@ mkIf cfg.hydra-builder {
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
nix.gc.automatic = true;
|
||||
|
||||
users.users."hydrabuild" = {
|
||||
users.users."hydrabld" = {
|
||||
description = "Execution des job hydra";
|
||||
group = "nixbld";
|
||||
isNormalUser = false;
|
||||
|
||||
Reference in New Issue
Block a user