Compare commits
9 Commits
nixos-19.0
...
2021-05-18
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed937ba5bc | ||
|
|
3de6332c3e | ||
|
|
e26453fc7e | ||
|
|
67b9f5b0f7 | ||
|
|
8f4f8ef953 | ||
|
|
c33f0f9c50 | ||
|
|
2064606f18 | ||
|
|
4a5f0ba1a7 | ||
|
|
9ed945bba8 |
4
Makefile
4
Makefile
@@ -35,7 +35,7 @@ optimise:
|
|||||||
$(TIME) nix optimise-store
|
$(TIME) nix optimise-store
|
||||||
|
|
||||||
rebuild-build:
|
rebuild-build:
|
||||||
nix-channel --add https://nixos.org/channels/nixos-19.09 nixos
|
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
||||||
$(TIME) time nixos-rebuild build --fallback --show-trace
|
$(TIME) time nixos-rebuild build --fallback --show-trace
|
||||||
|
|
||||||
rebuild-switch:
|
rebuild-switch:
|
||||||
@@ -58,7 +58,7 @@ store-repair:
|
|||||||
$(TIME) nix-store --verify --check-contents --repair
|
$(TIME) nix-store --verify --check-contents --repair
|
||||||
|
|
||||||
upgrade:
|
upgrade:
|
||||||
nix-channel --add https://nixos.org/channels/nixos-19.09 nixos
|
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
||||||
$(TIME) nixos-rebuild switch --upgrade --fallback --show-trace
|
$(TIME) nixos-rebuild switch --upgrade --fallback --show-trace
|
||||||
|
|
||||||
##--------- Commandes spécifiques pour NixOS -- Opérations non courantes
|
##--------- Commandes spécifiques pour NixOS -- Opérations non courantes
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ Ce dépôt stocke une configuration générique des machines.
|
|||||||
* mettre à jour les dépôts avec les dernières versions, `make submodules-update`
|
* mettre à jour les dépôts avec les dernières versions, `make submodules-update`
|
||||||
* vérifier que `configuration.nix` contient `services.xserver.enable = true;` pour les machines avec interface graphique
|
* vérifier que `configuration.nix` contient `services.xserver.enable = true;` pour les machines avec interface graphique
|
||||||
* vérifier que `configuration.nix` contient le nom de la machine `networking.hostName = "<X>";`
|
* vérifier que `configuration.nix` contient le nom de la machine `networking.hostName = "<X>";`
|
||||||
|
* vérifier que `configuration.nix` contient le nom de domaine `networking.domain = "<X>";`
|
||||||
* tester la configuration : `nixos-rebuild build`
|
* tester la configuration : `nixos-rebuild build`
|
||||||
* corriger et ajouter les éléments manquant (notamment dans `private/annuaire.nix` )
|
* corriger et ajouter les éléments manquant (notamment dans `private/annuaire.nix` )
|
||||||
* lorsque tout semble bon, vérifier :
|
* lorsque tout semble bon, vérifier :
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
#inherit (lib) mkIf mkMerge mkThenElse;
|
#inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ mkIf (flags.developpement && flags.graphical) {
|
|||||||
# Paquets
|
# Paquets
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Base de données
|
# Base de données
|
||||||
pgadmin # interface d'administration de postgres
|
#pgadmin # interface d'administration de postgres ***plus à jour, version openssl dépréciée***
|
||||||
#sqlitebrowser # interface d'administration de sqlite
|
#sqlitebrowser # interface d'administration de sqlite
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -20,4 +20,8 @@ mkIf (flags.radio && flags.graphical) {
|
|||||||
## A Trier
|
## A Trier
|
||||||
#inspectrum # Tool for analysing captured signals from sdr receivers
|
#inspectrum # Tool for analysing captured signals from sdr receivers
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"python2.7-Pillow-6.2.2"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ mkIf true {
|
|||||||
powerline-fonts
|
powerline-fonts
|
||||||
powertop
|
powertop
|
||||||
#ansible
|
#ansible
|
||||||
python36Packages.glances
|
glances
|
||||||
pv # afficher le débit d'un flux dd if=/dev/zero | pv | dd of=/dev/null
|
pv # afficher le débit d'un flux dd if=/dev/zero | pv | dd of=/dev/null
|
||||||
sysstat # pour la commande "iostat -x -1" de monitoring d'activité disque
|
sysstat # pour la commande "iostat -x -1" de monitoring d'activité disque
|
||||||
usbutils
|
usbutils
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ mkIf flags.officeSuite {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Bureautique
|
# Bureautique
|
||||||
aspell aspellDicts.fr # correction d'ortographe
|
aspell aspellDicts.fr # correction d'ortographe
|
||||||
python36Packages.grammalecte # correction gramatical
|
python39Packages.grammalecte # correction gramatical
|
||||||
|
|
||||||
# Gestion de tâche
|
# Gestion de tâche
|
||||||
taskwarrior # gestionnaire de tâches en console
|
taskwarrior # gestionnaire de tâches en console
|
||||||
@@ -24,7 +24,7 @@ mkIf flags.officeSuite {
|
|||||||
#jekyll # générateur statique de site web
|
#jekyll # générateur statique de site web
|
||||||
#odpdown # conversion md -> presentation ODP : https://github.com/thorstenb/odpdown
|
#odpdown # conversion md -> presentation ODP : https://github.com/thorstenb/odpdown
|
||||||
pandoc
|
pandoc
|
||||||
haskellPackages.pandoc-citeproc
|
#haskellPackages.pandoc-citeproc # ***BROKEN***
|
||||||
texlive.combined.scheme-full # distribution LaTeX
|
texlive.combined.scheme-full # distribution LaTeX
|
||||||
#texLive # distribution LaTeX de base
|
#texLive # distribution LaTeX de base
|
||||||
#texLiveBeamer # paquets et extensions pour Beamer
|
#texLiveBeamer # paquets et extensions pour Beamer
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ environment.systemPackages = with pkgs; [
|
|||||||
|
|
||||||
## Réseaux sociaux
|
## Réseaux sociaux
|
||||||
#turses # client twitter en ncurse
|
#turses # client twitter en ncurse
|
||||||
#python36Packages.rainbowstream # client twitter en console
|
#python39Packages.rainbowstream # client twitter en console
|
||||||
#rtv # client reddit en console
|
#rtv # client reddit en console
|
||||||
|
|
||||||
## Mail & Discussion (texte, audio)
|
## Mail & Discussion (texte, audio)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -33,4 +33,5 @@ mkIf true {
|
|||||||
wget # client HTTP console
|
wget # client HTTP console
|
||||||
which # pour connaitre le chemin d'un exécutable
|
which # pour connaitre le chemin d'un exécutable
|
||||||
];
|
];
|
||||||
|
programs.gnupg.agent.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
#inherit (lib) mkIf mkMerge mkThenElse;
|
#inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ mkIf flags.developpement-haskell {
|
|||||||
#brittany # formatteur de code
|
#brittany # formatteur de code
|
||||||
#darcs # gestionnaire de version éponyme
|
#darcs # gestionnaire de version éponyme
|
||||||
#ghc-mod # outil d'analyse de code haskell utilisé par IDE
|
#ghc-mod # outil d'analyse de code haskell utilisé par IDE
|
||||||
hindent # indentation code
|
#hindent # indentation code ***BROKEN***
|
||||||
hlint # qualite de code, analyse statique de code + astuces & bonnes pratiques
|
hlint # qualite de code, analyse statique de code + astuces & bonnes pratiques
|
||||||
#postgrest # mapper HTTP <-> PostgreSQL
|
#postgrest # mapper HTTP <-> PostgreSQL
|
||||||
servant # génération d'API REST
|
servant # génération d'API REST
|
||||||
@@ -31,6 +31,6 @@ mkIf flags.developpement-haskell {
|
|||||||
|
|
||||||
# Application perso
|
# Application perso
|
||||||
#hahp
|
#hahp
|
||||||
pandoc-filter-graphviz # filtre pour utiliser graphviz à partir de pandoc
|
#pandoc-filter-graphviz # filtre pour utiliser graphviz à partir de pandoc ***BROKEN***
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ let
|
|||||||
cfg = config.r6d.config-generator;
|
cfg = config.r6d.config-generator;
|
||||||
pfl = config.r6d.profiles;
|
pfl = config.r6d.profiles;
|
||||||
comp = config.r6d.computers;
|
comp = config.r6d.computers;
|
||||||
host = config.networking.hostName;
|
host = config.networking.fqdn;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -43,7 +43,8 @@ in
|
|||||||
#tincAddress = "192.168.12.8/24";
|
#tincAddress = "192.168.12.8/24";
|
||||||
|
|
||||||
(mkIf comp.isNomade{
|
(mkIf comp.isNomade{
|
||||||
networking.hostName = "nomade.dubronetwork.fr"; # Define your hostname.
|
networking.hostName = "nomade"; # Define your hostname.
|
||||||
|
networking.domain = "dubronetwork.fr";
|
||||||
r6d.profiles.isDubronetwork = true;
|
r6d.profiles.isDubronetwork = true;
|
||||||
|
|
||||||
r6d.config-generator = {
|
r6d.config-generator = {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
#inherit (lib) mkIf mkMerge mkThenElse;
|
#inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,16 +3,18 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
mkIf true {
|
mkIf true {
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
|
console = {
|
||||||
|
font = "Lat2-Terminus16";
|
||||||
|
keyMap = "fr";
|
||||||
|
};
|
||||||
i18n = {
|
i18n = {
|
||||||
consoleFont = "Lat2-Terminus16";
|
|
||||||
consoleKeyMap = "fr";
|
|
||||||
defaultLocale = "fr_FR.UTF-8";
|
defaultLocale = "fr_FR.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ mkIf true {
|
|||||||
# Il s'avère que hostname vérifie la validité du FQDN et du reverse.
|
# Il s'avère que hostname vérifie la validité du FQDN et du reverse.
|
||||||
# Fixer ces paramètres dans les hosts permet de faire tomber en marche
|
# Fixer ces paramètres dans les hosts permet de faire tomber en marche
|
||||||
networking.extraHosts = ''
|
networking.extraHosts = ''
|
||||||
127.0.0.1 ${config.networking.hostName}
|
127.0.0.1 ${config.networking.fqdn} ${config.networking.hostName}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Activation du routage
|
# Activation du routage
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -19,5 +19,6 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
environment.shellAliases = { nixos-generate-custom-config = "cd /iso/custom/ && make";};
|
environment.shellAliases = { nixos-generate-custom-config = "cd /iso/custom/ && make";};
|
||||||
networking.hostName = "nixos-livecd.corp.capgemini.com";
|
networking.hostName = "nixos-livecd";
|
||||||
|
networking.domain = "grudu.net";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
|
||||||
annuaire = config.r6d.machines;
|
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
|
||||||
flags = currentMachine.configurationFlags;
|
|
||||||
in
|
|
||||||
|
|
||||||
mkIf true {
|
|
||||||
# Lancement de dbus pour les utilisateurs
|
|
||||||
services.dbus.socketActivated = true;
|
|
||||||
}
|
|
||||||
@@ -3,14 +3,13 @@
|
|||||||
let
|
let
|
||||||
#inherit (lib) mkIf mkMerge mkThenElse;
|
#inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# installées systématiquement
|
# installées systématiquement
|
||||||
./dbus.nix
|
|
||||||
./gpm.nix
|
./gpm.nix
|
||||||
./haveged.nix
|
./haveged.nix
|
||||||
./monitoring-munin.nix
|
./monitoring-munin.nix
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
# TODO: ménage
|
# TODO: ménage
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
|
|
||||||
|
|
||||||
@@ -54,8 +54,8 @@ mkIf flags.hydra-core {
|
|||||||
|
|
||||||
services.hydra = {
|
services.hydra = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hydraURL = "http://hydra.${config.networking.hostName}";
|
hydraURL = "http://hydra.${config.networking.fqdn}";
|
||||||
notificationSender = "hydra@${config.networking.hostName}";
|
notificationSender = "hydra@${config.networking.fqdn}";
|
||||||
listenHost = "localhost";
|
listenHost = "localhost";
|
||||||
minimumDiskFree = 50; # Go
|
minimumDiskFree = 50; # Go
|
||||||
smtpHost = "localhost";
|
smtpHost = "localhost";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ mkIf flags.munin {
|
|||||||
services.munin-cron = {
|
services.munin-cron = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hosts = ''
|
hosts = ''
|
||||||
[${config.networking.hostName}]
|
[${config.networking.fqdn}]
|
||||||
address 127.0.0.1
|
address 127.0.0.1
|
||||||
df._dev_sda2.warning 35
|
df._dev_sda2.warning 35
|
||||||
use_node_name yes
|
use_node_name yes
|
||||||
@@ -65,9 +65,9 @@ mkIf flags.munin {
|
|||||||
# http://guide.munin-monitoring.org/en/latest/tutorial/alert.html#syntax-of-warning-and-critical
|
# http://guide.munin-monitoring.org/en/latest/tutorial/alert.html#syntax-of-warning-and-critical
|
||||||
extraGlobalConfig = ''
|
extraGlobalConfig = ''
|
||||||
#---
|
#---
|
||||||
#contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/services/munin-muttrc -s "Munin notification for ${config.networking.hostName}" root@ocean.prunetwork.fr
|
#contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/services/munin-muttrc -s "Munin notification for ${config.networking.fqdn}" root@ocean.prunetwork.fr
|
||||||
contact.email.command /run/current-system/sw/bin/mutt -F /etc/nixos/base/services/munin-muttrc -s "Munin notification for ${config.networking.hostName}" root@ocean.prunetwork.fr
|
contact.email.command /run/current-system/sw/bin/mutt -F /etc/nixos/base/services/munin-muttrc -s "Munin notification for ${config.networking.fqdn}" root@ocean.prunetwork.fr
|
||||||
contact.syslog.command /run/current-system/sw/bin/logger -p user.crit -t "Munin notification for ${config.networking.hostName}"
|
contact.syslog.command /run/current-system/sw/bin/logger -p user.crit -t "Munin notification for ${config.networking.fqdn}"
|
||||||
|
|
||||||
#---
|
#---
|
||||||
contact.email.always_send ok,warning,critical,unknown
|
contact.email.always_send ok,warning,critical,unknown
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ mkIf flags.scanner {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Driver
|
# Driver
|
||||||
hplip # Scanner HP
|
hplip # Scanner HP
|
||||||
python27Packages.pyqt4 # dépendance hplip
|
python39Packages.pyqt4 # dépendance hplip
|
||||||
|
|
||||||
# Outils pour exploiter les scanners
|
# Outils pour exploiter les scanners
|
||||||
simple-scan
|
simple-scan
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkThenElse;
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||||||
annuaire = config.r6d.machines;
|
annuaire = config.r6d.machines;
|
||||||
currentMachine = annuaire."${config.networking.hostName}";
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||||||
flags = currentMachine.configurationFlags;
|
flags = currentMachine.configurationFlags;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user