Compare commits
11 Commits
2017-01-29
...
2017-02-11
| Author | SHA1 | Date | |
|---|---|---|---|
| 458362bece | |||
| b4b213e836 | |||
| cc7f911141 | |||
| 4ffd71f10f | |||
|
|
07cf33a086 | ||
| f3741782e3 | |||
| b8c3447767 | |||
| eb3a945c7c | |||
| 6f19fdec07 | |||
| 91e81d50a6 | |||
|
|
293dd76025 |
15
Makefile
15
Makefile
@@ -1,17 +1,18 @@
|
||||
GSF=git submodule foreach
|
||||
TIME=time
|
||||
|
||||
all: rebuild-switch
|
||||
date
|
||||
##--------- Commandes spécifiques pour NixOS
|
||||
|
||||
clean:
|
||||
nix-collect-garbage -d --delete-older-than 15d
|
||||
$(TIME) nix-collect-garbage -d --delete-older-than 15d
|
||||
|
||||
clean-aggressive:
|
||||
nix-collect-garbage -d --delete-older-than 1d
|
||||
$(TIME) nix-collect-garbage -d --delete-older-than 1d
|
||||
|
||||
clean-total:
|
||||
nix-collect-garbage -d
|
||||
$(TIME) nix-collect-garbage -d
|
||||
|
||||
clean-log:
|
||||
journalctl --vacuum-size=1G
|
||||
@@ -20,19 +21,19 @@ full-auto: submodules-update upgrade clean optimise
|
||||
@date
|
||||
|
||||
optimise:
|
||||
nix-store --optimise
|
||||
$(TIME) nix-store --optimise
|
||||
|
||||
rebuild-switch:
|
||||
nixos-rebuild switch --fallback --show-trace
|
||||
$(TIME) time nixos-rebuild switch --fallback --show-trace
|
||||
|
||||
show-roots:
|
||||
nix-store --gc --print-roots
|
||||
|
||||
store-repair:
|
||||
nix-store --verify --check-contents --repair
|
||||
$(TIME) nix-store --verify --check-contents --repair
|
||||
|
||||
upgrade:
|
||||
nixos-rebuild switch --upgrade --fallback --show-trace
|
||||
$(TIME) nixos-rebuild switch --upgrade --fallback --show-trace
|
||||
|
||||
##--------- Commandes spécifiques pour NixOS -- Opérations non courantes
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ in
|
||||
conception-assistee = mkEnableOption "Profil pour activer les outils de conception électronique & modélisation 3D";
|
||||
database_postgres = mkEnableOption "Profil pour activer le SGBD PostgreSQL.";
|
||||
developpement = mkEnableOption "Profil pour activer les outils de développement";
|
||||
developpement-elm = mkEnableOption "Profil pour activer les outils de développement Elm";
|
||||
developpement-haskell = mkEnableOption "Profil pour activer les outils de développement Haskell";
|
||||
developpement-java = mkEnableOption "Profil pour activer les outils de développement Java";
|
||||
developpement-rust = mkEnableOption "Profil pour activer les outils de développement Rust";
|
||||
@@ -171,6 +172,7 @@ in
|
||||
conception-assistee = true;
|
||||
docker = true;
|
||||
developpement = true;
|
||||
developpement-elm = true;
|
||||
developpement-haskell = true;
|
||||
developpement-java = true;
|
||||
developpement-rust = true;
|
||||
@@ -195,15 +197,20 @@ in
|
||||
(mkIf (pfl.isPrunetwork && pfl.isWorkstation) {
|
||||
r6d.config-generator = {
|
||||
cartographie = true;
|
||||
#conception-assistee = true;
|
||||
docker = true;
|
||||
developpement = true;
|
||||
developpement-elm = true;
|
||||
developpement-haskell = true;
|
||||
developpement-java = true;
|
||||
#developpement-rust = true;
|
||||
#edition-musique = true;
|
||||
edition-photo = true;
|
||||
#edition-video = true;
|
||||
hydra-core = false; # DO NOT ENABLE ON WORKSTATION, YOU CAN CRASH YOUR SYSTEM
|
||||
print = true;
|
||||
virtualbox = true;
|
||||
#virtualbox = true;
|
||||
#xmonad = true;
|
||||
};
|
||||
})
|
||||
|
||||
@@ -251,9 +258,10 @@ in
|
||||
};
|
||||
|
||||
r6d.config-generator = {
|
||||
database_postgres = true;
|
||||
elasticsearch = true;
|
||||
hydra-builder = true;
|
||||
hydra-core = true;
|
||||
#hydra-core = false; # DO NOT ENABLE ON WORKSTATION
|
||||
kibana = true;
|
||||
rabbitmq = true;
|
||||
tincAddress = "192.168.12.3/24";
|
||||
|
||||
@@ -49,6 +49,7 @@ in
|
||||
fira-code # idem fira-mono + ligatures pour la programmation
|
||||
fira-mono # dérivée de fira en monospace
|
||||
hack-font # police monospace créée explicitement pour coder
|
||||
hasklig # police dérivée de source-code-pro mais avec des ligatures
|
||||
];
|
||||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
|
||||
@@ -25,6 +25,7 @@ environment.systemPackages = with pkgs; [
|
||||
## Mail & Discussion (texte, audio)
|
||||
clawsMail
|
||||
hexchat
|
||||
quassel
|
||||
quasselClient
|
||||
mumble
|
||||
mutt
|
||||
|
||||
26
public/app-developpement-elm.nix
Normal file
26
public/app-developpement-elm.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf mkMerge mkThenElse;
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
in
|
||||
|
||||
mkIf cfg.developpement-elm {
|
||||
|
||||
# Paquets
|
||||
environment.systemPackages = with pkgs; [
|
||||
elmPackages.elm
|
||||
];
|
||||
|
||||
# Services
|
||||
|
||||
# Réseau
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -19,6 +19,7 @@ mkIf cfg.developpement-haskell {
|
||||
|
||||
haskellPackages.stylish-haskell # qualité de code
|
||||
haskellPackages.hindent
|
||||
haskellPackages.hlint
|
||||
|
||||
# Application perso
|
||||
haskellPackages.hahp
|
||||
|
||||
@@ -14,5 +14,13 @@ mkIf cfg.edition-video {
|
||||
# Vidéo
|
||||
#cinelerra # editeur video
|
||||
pitivi # montage vidéo
|
||||
ffmpeg-full # assemblage de flux audio & video en ligne de commande
|
||||
];
|
||||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
ffmpeg-full = pkgs.ffmpeg-full.override {
|
||||
nonfreeLicensing = true;
|
||||
nvenc = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
status = auto
|
||||
[alias]
|
||||
a = add -p
|
||||
br = for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short)\t%(authorname)\t%(refname:short)'
|
||||
ci = commit
|
||||
co = checkout
|
||||
ff = pull --ff-only
|
||||
|
||||
@@ -27,6 +27,7 @@ in
|
||||
./app-cao.nix # de conception assisté par ordinateur & modélisation
|
||||
./app-cartographie.nix # manipuler les données géographiques & cartes
|
||||
./app-developpement.nix # développer des programmes/scripts
|
||||
./app-developpement-elm.nix # développer en elm
|
||||
./app-developpement-haskell.nix # développer en haskell
|
||||
./app-developpement-java.nix # développer en java
|
||||
./app-developpement-jetbrains.nix # outils jetbrains
|
||||
|
||||
@@ -23,7 +23,7 @@ mkIf true {
|
||||
};
|
||||
systemd.services.munin-node = {
|
||||
path = [ pkgs.munin pkgs.lm_sensors ];
|
||||
serviceConfig.TimeoutStartSec = "3min";
|
||||
serviceConfig.TimeoutStartSec = "1min";
|
||||
};
|
||||
|
||||
## Munin server -- generate /var/www/munin
|
||||
|
||||
@@ -12,6 +12,7 @@ vim_configurable.customize {
|
||||
# Here you can place all your vim plugins
|
||||
# They are installed managed by `vam` (a vim plugin manager)
|
||||
#"vim-addon-nix"
|
||||
"elm-vim"
|
||||
"vim-nix"
|
||||
"wombat256-vim"
|
||||
]; }
|
||||
|
||||
Reference in New Issue
Block a user