Compare commits

..

14 Commits

11 changed files with 49 additions and 13 deletions

29
README
View File

@@ -9,3 +9,32 @@ Actuellement, les scripts contiennent un peu de configuration spécifique pour l
* https://nixos.org/wiki/How_to_install_NixOS_from_Linux#Installing_through_a_chroot * https://nixos.org/wiki/How_to_install_NixOS_from_Linux#Installing_through_a_chroot
* https://github.com/NixOS/nixpkgs/issues/13305 * https://github.com/NixOS/nixpkgs/issues/13305
# Notes pour l'upgrade de 16.03 vers 16.09
* mettre le dépôt base sur la branche upgrade-16.09
* activer x11 dans le configuration.nix
~~~
services.xserver.enable = true;
~~~
* remplacer le bootloader
~~~
boot.loader.gummiboot.enable = true;
~~~
devient
~~~
boot.loader.systemd-boot.enable = true;
~~~
Pour résoudre les soucis d'upgrade, il est conseillé :
* de désactiver tous les imports (sauf `hardware.nix`)
* d'ajouter `.../localisation.nix` dans les imports sous peine d'être en clavier US
* d'ajouter ```nixpkgs.config.allowUnfree = true;```
* d'ajouter `vim` aux paquets
* de réactiver petit à petit les lignes désactivées

View File

@@ -16,7 +16,7 @@ mkIf cfg.nix-serve-client {
(mkIf (profiles.isDubronetwork && (! computers.isPedro) && (! computers.isRollo)) "http://nix-cache.dubronetwork.fr:5001") (mkIf (profiles.isDubronetwork && (! computers.isPedro) && (! computers.isRollo)) "http://nix-cache.dubronetwork.fr:5001")
(mkIf profiles.isPrunetwork "https://cache.nixos.org/") (mkIf profiles.isPrunetwork "https://cache.nixos.org/")
(mkIf (profiles.isPrunetwork && !profiles.isServer) "http://192.168.1.20:5000") (mkIf (profiles.isPrunetwork && !profiles.isServer) "http://nix-cache.dubronetwork.fr:5001")
]; ];
extraOptions = '' extraOptions = ''
connect-timeout = 5 connect-timeout = 5

View File

@@ -181,6 +181,7 @@ in
}; };
r6d.config-generator = { r6d.config-generator = {
print = true;
virtualbox = true; virtualbox = true;
}; };
}) })
@@ -251,6 +252,8 @@ in
r6d.config-generator = { r6d.config-generator = {
nix-serve-server = true; nix-serve-server = true;
laptop = true;
edition-photo = true;
}; };
}) })
(mkIf comp.isRollo { (mkIf comp.isRollo {

View File

@@ -1,10 +1,10 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.r6d.config-generator; cfg = config.r6d.config-generator;
computers = config.r6d.computers; computers = config.r6d.computers;
profiles = config.r6d.profiles; profiles = config.r6d.profiles;
mkIf = pkgs.lib.mkIf; mkIf = lib.mkIf;
in in
{ {

View File

@@ -37,7 +37,7 @@ mkIf profiles.isDesktop {
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
texLiveFull # 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
#texLiveModerncv # paquets pour la classe Modern CV #texLiveModerncv # paquets pour la classe Modern CV

View File

@@ -25,7 +25,7 @@ environment.systemPackages = with pkgs; [
## Mail & Discussion (texte, audio) ## Mail & Discussion (texte, audio)
clawsMail clawsMail
hexchat hexchat
kde5.quasselClient quasselClient
mumble mumble
mutt mutt
pidgin pidgin

View File

@@ -38,7 +38,7 @@ mkIf cfg.developpement {
## Rust ## Rust
cargo # récupération des dépendances + compilation projet rust cargo # récupération des dépendances + compilation projet rust
rustPlatform.rustc # pour les appels depuis les scripts rustc # pour les appels depuis les scripts
## Visualisation & outils de diff ## Visualisation & outils de diff
gource # visualisation en mouvement de l'historique git gource # visualisation en mouvement de l'historique git

View File

@@ -7,7 +7,8 @@ let
profiles = config.r6d.profiles; profiles = config.r6d.profiles;
in in
mkIf profiles.isDesktop { mkIf true {
#mkIf profiles.isDesktop {
# Paquets # Paquets
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@@ -19,7 +20,7 @@ mkIf profiles.isDesktop {
## Diagnostic ## Diagnostic
arp-scan arp-scan
wireshark #wireshark
whois whois
]; ];

View File

@@ -12,7 +12,7 @@ in
nix.buildCores = 0; nix.buildCores = 0;
# The NixOS release to be compatible with for stateful data such as databases. # The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "16.03"; system.stateVersion = "16.09";
# copies the NixOS configuration file (usually /etc/nixos/configuration.nix) and links it from the resulting system (getting to /run/current-system/configuration.nix) # copies the NixOS configuration file (usually /etc/nixos/configuration.nix) and links it from the resulting system (getting to /run/current-system/configuration.nix)
system.copySystemConfiguration = true; system.copySystemConfiguration = true;
@@ -20,6 +20,9 @@ in
# On autorise les paquets non-libres # On autorise les paquets non-libres
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Lancement de dbus pour les utilisateurs
services.dbus.socketActivated = true;
# Paquets # Paquets
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
@@ -39,6 +42,7 @@ in
p7zip # compression de fichier p7zip # compression de fichier
parted # partitionnement de disque parted # partitionnement de disque
pciutils pciutils
psmisc # fournis les utilitaires comme killall, fuser, pstree
python # python -- python -m SimpleHTTPServer 8000 python # python -- python -m SimpleHTTPServer 8000
python34Packages.glances # monitoring python34Packages.glances # monitoring
pwgen # générateur de mot de passe pwgen # générateur de mot de passe

View File

@@ -21,6 +21,7 @@ mkIf cfg.laptop {
# Paquets # Paquets
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
networkmanagerapplet networkmanagerapplet # gestionnaire réseau graphique + console (nm-applet + nmtui)
wirelesstools # fournis iwconfig
]; ];
} }

View File

@@ -12,13 +12,11 @@ mkIf profiles.isDesktop {
# Services # Services
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver = { services.xserver = {
enable = true; #enable = true;
layout = "fr"; layout = "fr";
xkbOptions = "eurosign:e"; xkbOptions = "eurosign:e";
displayManager.lightdm.enable = true; displayManager.lightdm.enable = true;
windowManager.awesome.enable = true; windowManager.awesome.enable = true;
startGnuPGAgent = true;
startOpenSSHAgent = false; # pas compatible avec l'agent GnuPG
inputClassSections = ['' inputClassSections = [''
Identifier "Marble Mouse" Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball" MatchProduct "Logitech USB Trackball"