Compare commits

..

9 Commits

Author SHA1 Message Date
99eac99e81 EXP radio 2017-11-11 15:38:46 +01:00
7ca303303c notes pulseaudio 2017-11-08 21:36:26 +01:00
5453b6bdcd EXPERIMENTAL ajout config pour radio SDR 2017-11-08 08:19:07 +01:00
b26bc099c8 munin : fix script path 2017-11-05 19:09:52 +01:00
29b388ee95 ajout commande pv 2017-11-05 18:55:32 +01:00
10937423fc désactivation textadept (erreur compil) 2017-11-05 18:54:59 +01:00
Jean-Pierre PRUNARET
38cf4631dd désactivation postgrest 2017-09-17 12:24:23 +02:00
Yves Dubromelle
88fa40fde3 haskell: ajout de servant 2017-09-09 10:39:28 +02:00
Jean-Pierre PRUNARET
99b3b11bd2 MaJ clef ssh hydra 2017-09-05 20:23:59 +02:00
7 changed files with 72 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ mkIf (flags.officeSuite && flags.graphical) {
## Editeur de texte
#lyx # surcouche WISIWIM à LaTeX
#focuswriter # outil pour l'écriture
textadept # un éditeur de texte facile pour copier-coller graphique
#textadept # un éditeur de texte facile pour copier-coller graphique
#zim # outil de prise de notes, wiki de bureau
## Visionneuse

54
applications/radio.nix Normal file
View File

@@ -0,0 +1,54 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge mkThenElse;
annuaire = config.r6d.machines;
currentMachine = annuaire."${config.networking.hostName}";
flags = currentMachine.configurationFlags;
in
mkIf true {
# pour que ça marche
# sudo rmmod dvb_usb_rtl28xxu
# lecture radio FM
# rtl_fm -f 96.9e6 -M wbfm -s 440000 -r 44100 - | aplay -r 44100 -f S16_LE
# rtl_fm -f 96.95e6 -M wbfm -s 441000 -r 44100 - | aplay -r 44100 -f S16_LE -t raw -c 1
# rtl_fm -f 96.95e6 -M wbfm -s 441000 -r 44100 -E deemp - |pv| aplay -r 44100 -f S16_LE -t raw -c 1
# Paquets
environment.systemPackages = with pkgs; [
## TERMINAL
rtl-sdr # Turns your Realtek RTL2832 based DVB dongle into a SDR receiver
## GUI
#gnuradio
gnuradio-with-packages
## A Trier
gnss-sdr # Global Navigation Satellite Systems software-defined receiver
#gnuradio # Software Defined Radio (SDR) software
#gnuradio-osmosdr # Gnuradio block for OsmoSDR and rtl-sdr
gqrx # GUI
inspectrum # Tool for analysing captured signals from sdr receivers
kalibrate-rtl # Calculate local oscillator frequency offset in RTL-SDR devices
# Inutile
#hackrf # An open source SDR platform
];
nixpkgs.config.packageOverrides = pkgs: {
gnuradio-with-packages = pkgs.gnuradio-with-packages.override {
extraPackages = with pkgs; [
gnuradio-ais
gnuradio-gsm
gnuradio-nacl
gnuradio-osmosdr
gnuradio-rds
];
};
};
}

View File

@@ -24,6 +24,7 @@ mkIf true {
powertop
#python27Packages.ansible2
python27Packages.glances
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
usbutils

View File

@@ -23,7 +23,8 @@ mkIf flags.developpement-haskell {
ghc-mod # outil d'analyse de code haskell utilisé par IDE
hindent # indentation code
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
stylish-haskell # qualité de code
turtle # genre shell-scripting

View File

@@ -76,7 +76,7 @@ mkIf flags.hydra-core {
### Machines connues
programs.ssh.knownHosts = {
"hydra.prunetwork.fr".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHqja/yYsQeS5amZKPUG+EKSIkjEN6fYW54Fzvj1pFaP";
"hydra.prunetwork.fr".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYrZu31+/ybhel7LNPNgsALEoMHwTc1OiTcmJnXZ3He";
"monstre.dubronetwork.fr".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBTTrLhq1Cwm0rpnwEIxSLqVrJWZnt+/9dt+SKd8NiIc";
"pedro.dubronetwork.fr".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM7fjo2ysLqlfSo6BKnc6I6m1ayoPrbwEEyTKZmUzsOD";
"ocean.prunetwork.fr".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINCaRuTl8iCTUE4XInOpkSlwQj5Re4w4Iq+gNIlJe8pA";

View File

@@ -21,6 +21,15 @@ mkIf flags.munin {
## Noeud de supervision munin = pas de stockage des données locales
services.munin-node = {
enable = true;
extraConfig = ''
# Ignore the apc_nis plugin, as it throws errors as I don't have an UPS.
# It's there because munin-node-configure is called with the contrib group,
# and the plugin has no method to check whether there's a compatible UPS available.
ignore_file ^apc_nis$
ignore_file ^sensors_-wrapped$
ignore_file ^.sensors_-wrapped$
'';
};
systemd.services.munin-node = {
path = with pkgs; [ munin lm_sensors ];
@@ -41,7 +50,7 @@ mkIf flags.munin {
address 127.0.0.1
'';
extraGlobalConfig = ''
contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/public/services/munin-muttrc -s "Munin notification for ''${var:host}" root@prunetwork.fr
contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/services/munin-muttrc -s "Munin notification for ''${var:host}" root@prunetwork.fr
'';
};

View File

@@ -9,6 +9,9 @@ in
mkIf flags.pulseaudio {
# Notes
# commande pour lister les cartes son : pacmd list-cards
# Paquets
environment.systemPackages = with pkgs; [
paprefs # préferences pulseaudio