Compare commits
13 Commits
2019-06-16
...
nixos-19.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 65e5776f86 | |||
|
|
235e636451 | ||
|
|
e849c55297 | ||
|
|
1e51d11778 | ||
|
|
f39f486f51 | ||
|
|
2a5809c3de | ||
|
|
7681f7774e | ||
|
|
fe0ea31e30 | ||
| f7de6a69bd | |||
| 9151b4dfc5 | |||
|
|
209b1b3e47 | ||
|
|
8355abcbfc | ||
|
|
9150a37969 |
4
Makefile
4
Makefile
@@ -35,7 +35,7 @@ optimise:
|
|||||||
$(TIME) nix optimise-store
|
$(TIME) nix optimise-store
|
||||||
|
|
||||||
rebuild-build:
|
rebuild-build:
|
||||||
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
|
nix-channel --add https://nixos.org/channels/nixos-19.09 nixos
|
||||||
$(TIME) time nixos-rebuild build --fallback --show-trace
|
$(TIME) time nixos-rebuild build --fallback --show-trace
|
||||||
|
|
||||||
rebuild-switch:
|
rebuild-switch:
|
||||||
@@ -58,7 +58,7 @@ store-repair:
|
|||||||
$(TIME) nix-store --verify --check-contents --repair
|
$(TIME) nix-store --verify --check-contents --repair
|
||||||
|
|
||||||
upgrade:
|
upgrade:
|
||||||
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
|
nix-channel --add https://nixos.org/channels/nixos-19.09 nixos
|
||||||
$(TIME) nixos-rebuild switch --upgrade --fallback --show-trace
|
$(TIME) nixos-rebuild switch --upgrade --fallback --show-trace
|
||||||
|
|
||||||
##--------- Commandes spécifiques pour NixOS -- Opérations non courantes
|
##--------- Commandes spécifiques pour NixOS -- Opérations non courantes
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ mkIf (flags.officeSuite && flags.graphical) {
|
|||||||
|
|
||||||
## Visionneuse
|
## Visionneuse
|
||||||
#kde5.okular # pdf
|
#kde5.okular # pdf
|
||||||
mcomix # livres (cbr, liste d'images), gestion d'une bibliothèque
|
#mcomix # livres (cbr, liste d'images), gestion d'une bibliothèque # Supprimé dans NixOS 20.03
|
||||||
pdfpc # pdf
|
pdfpc # pdf
|
||||||
qpdfview # pdf
|
qpdfview # pdf
|
||||||
gqview # visionneuse image & gestion basique de collection
|
gqview # visionneuse image & gestion basique de collection
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ environment.systemPackages = with pkgs; [
|
|||||||
clawsMail
|
clawsMail
|
||||||
hexchat
|
hexchat
|
||||||
quasselClient
|
quasselClient
|
||||||
#mumble
|
mumble
|
||||||
pidgin
|
pidgin
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ mkIf (flags.developpement && flags.graphical) {
|
|||||||
# Gestion des sources
|
# Gestion des sources
|
||||||
#gitg # interface pour utiliser git (historique, commit)
|
#gitg # interface pour utiliser git (historique, commit)
|
||||||
gitstats # génère un site web statique avec des statistiques
|
gitstats # génère un site web statique avec des statistiques
|
||||||
gitAndTools.gitFull # pour gitk
|
|
||||||
git-cola # interface pour utiliser git (historique, commit)
|
git-cola # interface pour utiliser git (historique, commit)
|
||||||
|
|
||||||
## Visualisation & outils de diff
|
## Visualisation & outils de diff
|
||||||
|
|||||||
@@ -12,15 +12,12 @@ mkIf (flags.radio && flags.graphical) {
|
|||||||
# Paquets
|
# Paquets
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
## GUI
|
## GUI
|
||||||
|
chirp # Configuration de radios portatives
|
||||||
gqrx # GUI
|
gqrx # GUI
|
||||||
gnuradio # Software Defined Radio (SDR) software
|
cubicsdr # Another GUI
|
||||||
gnuradio-with-packages # Software Defined Radio (SDR) software
|
gnuradio-with-packages # Software Defined Radio (SDR) software
|
||||||
|
|
||||||
## A Trier
|
## A Trier
|
||||||
#
|
#inspectrum # Tool for analysing captured signals from sdr receivers
|
||||||
#gnuradio-osmosdr # Gnuradio block for OsmoSDR and rtl-sdr
|
|
||||||
|
|
||||||
inspectrum # Tool for analysing captured signals from sdr receivers
|
|
||||||
kalibrate-rtl # Calculate local oscillator frequency offset in RTL-SDR devices
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ mkIf true {
|
|||||||
clawsMail = pkgs.clawsMail.override {
|
clawsMail = pkgs.clawsMail.override {
|
||||||
enablePgp = true;
|
enablePgp = true;
|
||||||
enablePluginArchive = true;
|
enablePluginArchive = true;
|
||||||
enablePluginFancy = false; # nécessite wekitgtk qui est troué
|
#enablePluginFancy = false; # nécessite wekitgtk qui est troué # Option supprimée dans NixOS 20.03
|
||||||
enablePluginPdf = true;
|
enablePluginPdf = true;
|
||||||
enablePluginRavatar = true;
|
enablePluginRavatar = true;
|
||||||
enablePluginSmime = true;
|
enablePluginSmime = true;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ mkIf true {
|
|||||||
# Paquets
|
# Paquets
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
byobu # permet de se déconnecter d'un terminal sans l'arréter
|
byobu # permet de se déconnecter d'un terminal sans l'arréter
|
||||||
git gitAndTools.tig gti # outil de gestion de version
|
gitAndTools.gitFull gitAndTools.tig gti # outil de gestion de version
|
||||||
gnumake # pour décrire les recettes de compilation
|
gnumake # pour décrire les recettes de compilation
|
||||||
gnupg # GPG
|
gnupg # GPG
|
||||||
htop # monitoring
|
htop # monitoring
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ mkIf flags.developpement {
|
|||||||
|
|
||||||
# Gestion des sources
|
# Gestion des sources
|
||||||
cloc # outil pour compter les lignes de code source
|
cloc # outil pour compter les lignes de code source
|
||||||
git gitAndTools.gitSVN # git et git-svn
|
|
||||||
mercurial
|
mercurial
|
||||||
subversion
|
subversion
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ mkIf flags.radio {
|
|||||||
gnss-sdr # Global Navigation Satellite Systems software-defined receiver
|
gnss-sdr # Global Navigation Satellite Systems software-defined receiver
|
||||||
liquid-dsp # Digital signal processing library for software-defined radios
|
liquid-dsp # Digital signal processing library for software-defined radios
|
||||||
rtl-sdr # Turns your Realtek RTL2832 based DVB dongle into a SDR receiver
|
rtl-sdr # Turns your Realtek RTL2832 based DVB dongle into a SDR receiver
|
||||||
|
dump1090 # Listen to planes ADS-B and view them on a map
|
||||||
];
|
];
|
||||||
|
|
||||||
# Configuration matérielle
|
# Configuration matérielle
|
||||||
|
|||||||
@@ -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 = "19.03";
|
system.stateVersion = "19.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;
|
||||||
|
|||||||
@@ -12,12 +12,15 @@ mkIf flags.laptop {
|
|||||||
# Gestion spécifique pour PC portable
|
# Gestion spécifique pour PC portable
|
||||||
|
|
||||||
## Gestion de l'énergie
|
## Gestion de l'énergie
|
||||||
powerManagement.cpuFreqGovernor = "powersave";
|
services.tlp.enable = true;
|
||||||
|
|
||||||
## Activation d'un gestionnaire de réseau
|
## Activation d'un gestionnaire de réseau
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Gestion graphique du réseau dans la barre système
|
# Gestion graphique du réseau dans la barre système
|
||||||
programs.nm-applet.enable = true;
|
programs.nm-applet.enable = true;
|
||||||
@@ -25,6 +28,8 @@ mkIf flags.laptop {
|
|||||||
# Paquets
|
# Paquets
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wirelesstools # fournis iwconfig
|
wirelesstools # fournis iwconfig
|
||||||
|
blueman # outils bluetooth (manager, system tray)
|
||||||
|
cbatticon # status de la batterie dans le system tray
|
||||||
];
|
];
|
||||||
|
|
||||||
# Services
|
# Services
|
||||||
|
|||||||
14
options.nix
14
options.nix
@@ -63,7 +63,7 @@ let
|
|||||||
|
|
||||||
ipAddress = mkOption {
|
ipAddress = mkOption {
|
||||||
description = "Adresse IP.";
|
description = "Adresse IP.";
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
nix-serve-server = mkEnableOption "nix-serve server.";
|
nix-serve-server = mkEnableOption "nix-serve server.";
|
||||||
nix-serve-client = {
|
nix-serve-client = {
|
||||||
@@ -80,18 +80,18 @@ let
|
|||||||
dnsFQDN = mkOption {
|
dnsFQDN = mkOption {
|
||||||
example = "device.example.net.";
|
example = "device.example.net.";
|
||||||
description = "DNS name of host pointing to tunnel IP.";
|
description = "DNS name of host pointing to tunnel IP.";
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
connectToAddress = mkOption {
|
connectToAddress = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "192.168.1.1";
|
example = "192.168.1.1";
|
||||||
description = "External address to connect from another node.";
|
description = "External address to connect from another node.";
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
vpnAddress = mkOption {
|
vpnAddress = mkOption {
|
||||||
example = "192.168.69.69/24";
|
example = "192.168.69.69/24";
|
||||||
description = "VPN local node IP address.";
|
description = "VPN local node IP address.";
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
vpnCidrLength = mkOption {
|
vpnCidrLength = mkOption {
|
||||||
default = 24;
|
default = 24;
|
||||||
@@ -106,7 +106,7 @@ let
|
|||||||
ConnecTo = bar
|
ConnecTo = bar
|
||||||
'';
|
'';
|
||||||
description = "Configuration supplémentaire pour tinc.";
|
description = "Configuration supplémentaire pour tinc.";
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ let
|
|||||||
enable = mkEnableOption "Activation du démarrage de Windows par Grub";
|
enable = mkEnableOption "Activation du démarrage de Windows par Grub";
|
||||||
drive = mkOption {
|
drive = mkOption {
|
||||||
description = "Lecteur sur lequel est présent le système Windows (au format GRUB)";
|
description = "Lecteur sur lequel est présent le système Windows (au format GRUB)";
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
default = "hd0,1";
|
default = "hd0,1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -137,7 +137,7 @@ let
|
|||||||
enable = mkEnableOption "Montage de la partition data Windows";
|
enable = mkEnableOption "Montage de la partition data Windows";
|
||||||
device = mkOption {
|
device = mkOption {
|
||||||
description = "Lecteur sur lequel est présent le disque de data Windows";
|
description = "Lecteur sur lequel est présent le disque de data Windows";
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
default = "/dev/sda2";
|
default = "/dev/sda2";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -413,7 +413,8 @@ globalkeys = awful.util.table.join(
|
|||||||
awful.key({ modkey, "Shift" }, "F1", function () awful.util.spawn("claws-mail") end, {description = "Lance claws", group = "Lanceurs personnels"}),
|
awful.key({ modkey, "Shift" }, "F1", function () awful.util.spawn("claws-mail") end, {description = "Lance claws", group = "Lanceurs personnels"}),
|
||||||
awful.key({ modkey, "Shift" }, "F3", function () awful.util.spawn("pcmanfm") end, {description = "Lance pcmanfm", group = "Lanceurs personnels"}),
|
awful.key({ modkey, "Shift" }, "F3", function () awful.util.spawn("pcmanfm") end, {description = "Lance pcmanfm", group = "Lanceurs personnels"}),
|
||||||
awful.key({ modkey, "Shift" }, "F6", function () awful.util.spawn("clementine") end, {description = "Lance clementine", group = "Lanceurs personnels"}),
|
awful.key({ modkey, "Shift" }, "F6", function () awful.util.spawn("clementine") end, {description = "Lance clementine", group = "Lanceurs personnels"}),
|
||||||
awful.key({ modkey, "Shift" }, "F11", function () awful.util.spawn("xrandr-auto-2") end, {description = "Lance le script xrandr-auto-2", group = "Lanceurs personnels"})
|
awful.key({ modkey, "Shift" }, "F11", function () awful.util.spawn("xrandr-auto-2") end, {description = "Lance le script xrandr-auto-2", group = "Lanceurs personnels"}),
|
||||||
|
awful.key({ modkey }, "l", function () awful.util.spawn("slock systemctl suspend -i") end, {description = "Verouille la session avec slock", group = "Lanceurs personnels"})
|
||||||
-- awful.key({ modkey, "Shift" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-left") end),
|
-- awful.key({ modkey, "Shift" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-left") end),
|
||||||
-- awful.key({ modkey, "Control" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-right") end),
|
-- awful.key({ modkey, "Control" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-right") end),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ mkIf flags.pulseaudio {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
paprefs # préferences pulseaudio
|
paprefs # préferences pulseaudio
|
||||||
pavucontrol # mixer pulseaudio
|
pavucontrol # mixer pulseaudio
|
||||||
|
pa_applet # status et contrôle dans le system tray
|
||||||
];
|
];
|
||||||
|
|
||||||
# Pulse Audio
|
# Pulse Audio
|
||||||
|
|||||||
Reference in New Issue
Block a user