Compare commits

..

15 Commits

Author SHA1 Message Date
021b1d5c26 Revert "lors d'une full-auto, on ne force pas à être sur la branche master"
This reverts commit 3a8a728268.
2016-10-31 14:17:03 +01:00
Yves Dubromelle
31f57965f9 peers -> extraconfig de tinc, pour être plus souple 2016-10-30 01:31:40 +02:00
Yves Dubromelle
0a3d820dd6 variable pour les noeuds auquels tinc doit se connecter 2016-10-30 01:24:27 +02:00
Yves Dubromelle
f0f266cb55 adresse IP du noeud tinc local 2016-10-30 01:19:25 +02:00
Yves Dubromelle
1916d6eb90 désactivation grsecurity 2016-10-28 21:27:00 +02:00
fa32aed569 hydra build: correction du type d'user 2016-10-26 08:32:16 +02:00
9201266575 Revert "fix: variables d'environnement pour gpg (et donc pass)"
This reverts commit 2982725e0b.
2016-10-25 23:07:42 +02:00
756a18b2e8 Merge remote-tracking branch 'origin/upgrade-16.09' into upgrade-16.09 2016-10-25 22:02:37 +02:00
3b04c2edb0 alias gpg -> gpg2 2016-10-25 19:52:45 +02:00
2982725e0b fix: variables d'environnement pour gpg (et donc pass) 2016-10-25 19:52:10 +02:00
9e8d3b24b3 correction du nom d'utilisateur pour le build 2016-10-22 15:37:50 +02:00
dba3a46ebd fichier inutile 2016-10-22 15:37:20 +02:00
7d28694819 ocean: activation radicale 2016-10-20 23:56:43 +02:00
ed5420e1b0 ajout option pour radicale 2016-10-20 23:56:29 +02:00
d6bfe1c706 pinentry 2016-10-18 15:23:23 +02:00
5 changed files with 31 additions and 38 deletions

View File

@@ -37,7 +37,7 @@ push: submodules-push
submodules-update:
#git submodule update --remote
#git submodule foreach git co master
git submodule foreach git co master
git submodule foreach git ff
submodules-push:

View File

@@ -55,10 +55,27 @@ in
online-ipv6 = mkEnableOption "Profil pour activer l'IPv6 de online.net";
print = mkEnableOption "Profil pour activer cups & pouvoir imprimer.";
rabbitmq = mkEnableOption "Profil pour activer le service de messagerie AMQP.";
radicale = mkEnableOption "Profil pour activer le service d'hébergement de calendrier + tâches & contacts.";
swap = mkEnableOption "Profil pour que le swap soit activé.";
virtualbox = mkEnableOption "Profil pour l'utilisation de VirtualBox.";
xmonad = mkEnableOption "Profil pour activer le gestionnaire de fenêtres xmonad.";
znc = mkEnableOption "Profil pour activer le relais IRC ZNC.";
tincAddress = mkOption {
default = "";
example = "192.168.1.1";
description = "Adresse du noeud tinc local";
type = lib.types.string;
};
tincExtraConfig = mkOption {
default = "";
example = ''
Mode = router
ConnecTo = bar
'';
description = "Configuration supplémentaire pour tinc";
type = lib.types.string;
};
};
#* Utilisé pour avoir des raccourcis de machine
r6d.computers = {
@@ -173,6 +190,7 @@ in
r6d.config-generator = {
docker = true;
radicale = true;
};
})
(mkIf comp.isRadx {
@@ -205,6 +223,8 @@ in
r6d.config-generator = {
laptop = true;
tincAddress = "192.168.12.2/24";
tincExtraConfig = "ConnectTo = phenom_dubronetwork_fr";
};
})
(mkIf comp.isMonstre {
@@ -258,6 +278,7 @@ in
nix-serve-server = true;
laptop = true;
edition-photo = true;
tincAddress = "192.168.12.1/24";
};
})
(mkIf comp.isRollo {

View File

@@ -23,6 +23,9 @@ in
# Lancement de dbus pour les utilisateurs
services.dbus.socketActivated = true;
# NixOS Hardening
#security.grsecurity.enable = true;
# Paquets
environment = {
systemPackages = with pkgs; [
@@ -42,6 +45,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 +60,7 @@ in
];
shellAliases = {
byobu = "byobu-tmux";
gpg = "gpg2";
jacques-a-dit = "sudo";
tree = "tree -C";
tree1 = "tree -d -L 1";

View File

@@ -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;
#};
}

View File

@@ -19,10 +19,11 @@ mkIf cfg.hydra-builder {
virtualisation.virtualbox.host.enable = true;
nix.gc.automatic = true;
users.users."hydrabuild" = {
description = "Execution des job hydra";
users.users."hydrabld" = {
description = "Execution des jobs hydra";
group = "nixbld";
isNormalUser = false;
extraGroups = [ "nixbld" ];
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGYpjcWJCf8dXpv2LmoIaNVbwZXEC50QUU6Az+lqeD89 hydra radx"