Compare commits

...

6 Commits

4 changed files with 40 additions and 3 deletions

5
README Normal file
View File

@@ -0,0 +1,5 @@
# Lien pour install sur machine distante
* https://nixos.org/wiki/How_to_install_NixOS_from_Linux#Installing_through_a_chroot
* https://github.com/NixOS/nixpkgs/issues/13305

View File

@@ -12,7 +12,11 @@ in {
(mkIf (profiles.isDubronetwork && (! computers.isMonstre)) "http://192.168.10.169:5000") (mkIf (profiles.isDubronetwork && (! computers.isMonstre)) "http://192.168.10.169:5000")
(mkIf profiles.isDubronetwork "http://192.168.10.252:5000") (mkIf profiles.isDubronetwork "http://192.168.10.252:5000")
(mkIf profiles.isPrunetwork "http://192.168.1.20:5000") (mkIf (profiles.isPrunetwork && !profiles.isServer) "http://192.168.1.20:5000")
]; ];
}; extraOptions = ''
} connect-timeout = 5
'';
};
}

File diff suppressed because one or more lines are too long

View File

@@ -18,6 +18,7 @@ in
./activation-manuelle/nix-serve-client.nix ./activation-manuelle/nix-serve-client.nix
./activation-manuelle/nix-serve-server.nix ./activation-manuelle/nix-serve-server.nix
./activation-manuelle/swap.nix ./activation-manuelle/swap.nix
./activation-manuelle/users.nix
]; ];
###### interface ###### interface
@@ -50,6 +51,7 @@ in
nix-serve-server= mkEnableOption "Profil pour que la machine soit un serveur de cache nix."; nix-serve-server= mkEnableOption "Profil pour que la machine soit un serveur de cache nix.";
swap = mkEnableOption "Profil pour que le swap soit activé."; swap = mkEnableOption "Profil pour que le swap soit activé.";
virtualbox = mkEnableOption "Profil pour l'utilisation de VirtualBox."; virtualbox = mkEnableOption "Profil pour l'utilisation de VirtualBox.";
xmonad = mkEnableOption "Profil pour activer le gestionnaire de fenêtres xmonad.";
}; };
#* Utilisé pour avoir des raccourcis de machine #* Utilisé pour avoir des raccourcis de machine
r6d.computers = { r6d.computers = {
@@ -57,6 +59,7 @@ in
isMonstre = mkEnableOption "Identification du nom de machine."; isMonstre = mkEnableOption "Identification du nom de machine.";
isNeoNomade = mkEnableOption "Identification du nom de machine."; isNeoNomade = mkEnableOption "Identification du nom de machine.";
isNomade = mkEnableOption "Identification du nom de machine."; isNomade = mkEnableOption "Identification du nom de machine.";
isOcean = mkEnableOption "Identification du nom de machine.";
isPhenom = mkEnableOption "Identification du nom de machine."; isPhenom = mkEnableOption "Identification du nom de machine.";
isRadx = mkEnableOption "Identification du nom de machine."; isRadx = mkEnableOption "Identification du nom de machine.";
isXray = mkEnableOption "Identification du nom de machine."; isXray = mkEnableOption "Identification du nom de machine.";
@@ -75,6 +78,7 @@ in
isMonstre = host == "monstre.dubronetwork.fr"; isMonstre = host == "monstre.dubronetwork.fr";
isNeoNomade = host == "neo-nomade.dubronetwork.fr"; isNeoNomade = host == "neo-nomade.dubronetwork.fr";
isNomade = host == "nomade.dubronetwork.fr"; isNomade = host == "nomade.dubronetwork.fr";
isOcean = host == "ocean.prunetwork.fr";
isPhenom = host == "phenom.dubronetwork.fr"; isPhenom = host == "phenom.dubronetwork.fr";
isRadx = host == "radx.prunetwork.fr"; isRadx = host == "radx.prunetwork.fr";
isXray = host == "xray.prunetwork.fr"; isXray = host == "xray.prunetwork.fr";
@@ -120,6 +124,10 @@ in
## Affectation des profils aux machines ## Affectation des profils aux machines
(mkIf comp.isOcean {
r6d.profiles.isPrunetwork = true;
r6d.profiles.isServer = true;
})
(mkIf comp.isRadx { (mkIf comp.isRadx {
r6d.profiles.isHome = true; r6d.profiles.isHome = true;
r6d.profiles.isPrunetwork = true; r6d.profiles.isPrunetwork = true;
@@ -142,6 +150,7 @@ in
r6d.config-generator = { r6d.config-generator = {
laptop = true; laptop = true;
xmonad = true;
}; };
}) })
(mkIf comp.isMonstre { (mkIf comp.isMonstre {
@@ -171,6 +180,7 @@ in
r6d.profiles.isWorkstation = true; r6d.profiles.isWorkstation = true;
r6d.config-generator.nix-serve-server = true; r6d.config-generator.nix-serve-server = true;
r6d.config-generator.xmonad = true;
}) })
]; ];
} }