Compare commits
6 Commits
2017-10-08
...
2017-11-11
| Author | SHA1 | Date | |
|---|---|---|---|
| 99eac99e81 | |||
| 7ca303303c | |||
| 5453b6bdcd | |||
| b26bc099c8 | |||
| 29b388ee95 | |||
| 10937423fc |
@@ -24,7 +24,7 @@ mkIf (flags.officeSuite && flags.graphical) {
|
|||||||
## Editeur de texte
|
## Editeur de texte
|
||||||
#lyx # surcouche WISIWIM à LaTeX
|
#lyx # surcouche WISIWIM à LaTeX
|
||||||
#focuswriter # outil pour l'écriture
|
#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
|
#zim # outil de prise de notes, wiki de bureau
|
||||||
|
|
||||||
## Visionneuse
|
## Visionneuse
|
||||||
|
|||||||
54
applications/radio.nix
Normal file
54
applications/radio.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -24,6 +24,7 @@ mkIf true {
|
|||||||
powertop
|
powertop
|
||||||
#python27Packages.ansible2
|
#python27Packages.ansible2
|
||||||
python27Packages.glances
|
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
|
sysstat # pour la commande "iostat -x -1" de monitoring d'activité disque
|
||||||
usbutils
|
usbutils
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,15 @@ mkIf flags.munin {
|
|||||||
## Noeud de supervision munin = pas de stockage des données locales
|
## Noeud de supervision munin = pas de stockage des données locales
|
||||||
services.munin-node = {
|
services.munin-node = {
|
||||||
enable = true;
|
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 = {
|
systemd.services.munin-node = {
|
||||||
path = with pkgs; [ munin lm_sensors ];
|
path = with pkgs; [ munin lm_sensors ];
|
||||||
@@ -41,7 +50,7 @@ mkIf flags.munin {
|
|||||||
address 127.0.0.1
|
address 127.0.0.1
|
||||||
'';
|
'';
|
||||||
extraGlobalConfig = ''
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ in
|
|||||||
|
|
||||||
mkIf flags.pulseaudio {
|
mkIf flags.pulseaudio {
|
||||||
|
|
||||||
|
# Notes
|
||||||
|
# commande pour lister les cartes son : pacmd list-cards
|
||||||
|
|
||||||
# Paquets
|
# Paquets
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
paprefs # préferences pulseaudio
|
paprefs # préferences pulseaudio
|
||||||
|
|||||||
Reference in New Issue
Block a user