Compare commits
28 Commits
nixos-21.0
...
flakes
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0dd2698082 | ||
|
|
9d5db185b3 | ||
|
|
3fcc75fc55 | ||
|
|
66f27557f7 | ||
|
|
d237134bcd | ||
|
|
1abecd8f8a | ||
|
|
f6a58ed4e4 | ||
|
|
e2cb3422bd | ||
|
|
cb013ea75f | ||
|
|
542ae88339 | ||
|
|
cbb90ffad0 | ||
|
|
1064756989 | ||
|
|
cc2199054b | ||
|
|
9f9cb0cf94 | ||
|
|
a44decfa44 | ||
|
|
cadee242a0 | ||
|
|
342ccbf143 | ||
|
|
2270cf730d | ||
|
|
589f090d6f | ||
|
|
838d1f4895 | ||
|
|
280eb0714a | ||
|
|
b0c7a106bf | ||
|
f01bda8781
|
|||
|
fe50587190
|
|||
| 5d2219ba0a | |||
| 023857ba73 | |||
| af4c0b313e | |||
|
|
8ca891e79b |
@@ -21,7 +21,7 @@ mkIf currentMachine.profiles.isDesktopEnvironment {
|
||||
xorg.xkill # pour 'tuer une application'
|
||||
|
||||
## Gestionnaire de fenêtre & Thème
|
||||
gnome3.adwaita-icon-theme # thème d'icone - semble fonctionner avec spaceFM
|
||||
gnome.adwaita-icon-theme # thème d'icone - semble fonctionner avec spaceFM
|
||||
|
||||
## Manipulation de fichier
|
||||
#kde5.dolphin # gestionnaire de fichiers graphique
|
||||
@@ -35,7 +35,7 @@ mkIf currentMachine.profiles.isDesktopEnvironment {
|
||||
];
|
||||
|
||||
# Polices supplémentaires
|
||||
fonts.fonts = with pkgs; [
|
||||
fonts.packages = with pkgs; [
|
||||
fira # police créée pour Firefox
|
||||
fira-code # idem fira-mono + ligatures pour la programmation
|
||||
fira-mono # dérivée de fira en monospace
|
||||
|
||||
@@ -28,6 +28,7 @@ environment.systemPackages = with pkgs; [
|
||||
# Transfert de fichier
|
||||
filezilla
|
||||
transmission-gtk
|
||||
transmission-remote-gtk
|
||||
transmission-qt
|
||||
transgui
|
||||
];
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@ mkIf (flags.radio && flags.graphical) {
|
||||
chirp # Configuration de radios portatives
|
||||
gqrx # GUI
|
||||
cubicsdr # Another GUI
|
||||
sdrpp
|
||||
sdrangel
|
||||
gnuradio-with-packages # Software Defined Radio (SDR) software
|
||||
|
||||
## A Trier
|
||||
|
||||
@@ -11,7 +11,7 @@ mkIf (flags.securitySuite && flags.graphical) {
|
||||
|
||||
# Paquets
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome3.seahorse # gestionnaire graphique de clef GPG
|
||||
gnome.seahorse # gestionnaire graphique de clef GPG
|
||||
#yubikey-personalization-gui # utilisation de la clef Yubikey
|
||||
];
|
||||
}
|
||||
|
||||
@@ -29,13 +29,13 @@ mkIf true {
|
||||
# bug connu : https://nixos.org/nix-dev/2014-December/015225.html
|
||||
# find /nix/store/ -maxdepth 1 -type d -name "*gnuradio-*"
|
||||
# Commande pour générer le path : find /nix/store/ -maxdepth 1 -type d -name "*gnuradio-*"|paste -d: -s -
|
||||
gnuradio-with-packages = pkgs.gnuradio-with-packages.override {
|
||||
extraPackages = with pkgs; [
|
||||
gnuradio-ais
|
||||
gnuradio-gsm
|
||||
gnuradio-nacl
|
||||
gnuradio-osmosdr # support des dongle Realtek
|
||||
gnuradio-rds # support du décodage de RDS sur les radio FM
|
||||
gnuradio-with-packages = pkgs.gnuradio3_8.override {
|
||||
extraPackages = with pkgs.gnuradio3_8Packages; [
|
||||
ais
|
||||
#gsm
|
||||
#nacl
|
||||
osmosdr # support des dongle Realtek
|
||||
rds # support du décodage de RDS sur les radio FM
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ mkIf true {
|
||||
# Adminsys
|
||||
bind # utilisé pour les utilitaires comme dig
|
||||
cowsay # pour ansible & 4lulz
|
||||
dhcp # client dhcp
|
||||
iotop
|
||||
lm_sensors
|
||||
lshw
|
||||
|
||||
@@ -31,9 +31,12 @@ mkIf true {
|
||||
usbutils
|
||||
wget # client HTTP console
|
||||
which # pour connaitre le chemin d'un exécutable
|
||||
helix # Éditeur post-moderne
|
||||
nil # LSP pour Nix
|
||||
nodePackages.bash-language-server # LSP pour Bash
|
||||
delta # visionneur de différences
|
||||
];
|
||||
programs = {
|
||||
fish.enable = true;
|
||||
gnupg.agent.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
|
||||
@@ -12,8 +12,6 @@ mkIf flags.developpement-rust {
|
||||
# Paquets
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Rust
|
||||
cargo # récupération des dépendances + compilation projet rust
|
||||
rustc # pour les appels depuis les scripts
|
||||
rustup # outil de configuration de toolchain rust
|
||||
crate2nix # génère les fichiers de build Nix dans un projet Rust
|
||||
];
|
||||
|
||||
@@ -23,6 +23,7 @@ mkIf flags.radio {
|
||||
liquid-dsp # Digital signal processing library for software-defined radios
|
||||
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
|
||||
rtl_433 # Read sensors on 433 MHz
|
||||
];
|
||||
|
||||
hardware.rtl-sdr.enable = true;
|
||||
|
||||
@@ -10,11 +10,11 @@ let
|
||||
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
|
||||
start = [
|
||||
wombat256-vim
|
||||
ale
|
||||
];
|
||||
opt = [
|
||||
elm-vim
|
||||
vim-fish
|
||||
vim-nix
|
||||
vimwiki
|
||||
];
|
||||
};
|
||||
|
||||
@@ -5,6 +5,9 @@ set nocompatible
|
||||
filetype plugin on
|
||||
syntax on
|
||||
|
||||
" Réglages ALE
|
||||
let g:ale_completion_enabled = 1
|
||||
|
||||
" allow backspacing over everything in insert mode
|
||||
set backspace=indent,eol,start
|
||||
|
||||
|
||||
@@ -9,10 +9,11 @@ in
|
||||
|
||||
{
|
||||
# The NixOS release to be compatible with for stateful data such as databases.
|
||||
system.stateVersion = "19.09";
|
||||
#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)
|
||||
system.copySystemConfiguration = true;
|
||||
# https://github.com/NixOS/nixpkgs/issues/97252
|
||||
#system.copySystemConfiguration = true;
|
||||
|
||||
# On autorise les paquets non-libres
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
@@ -21,7 +22,7 @@ in
|
||||
#security.grsecurity.enable = true;
|
||||
|
||||
# Ménage de /tmp au boot
|
||||
boot.cleanTmpDir = true;
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
|
||||
# Activation des pages de manuel
|
||||
documentation.man.enable = true;
|
||||
@@ -44,11 +45,23 @@ in
|
||||
byobu-adminsys = "/etc/nixos/base/byobu-adminsys";
|
||||
};
|
||||
};
|
||||
programs.bash = {
|
||||
enableCompletion = true;
|
||||
promptInit = builtins.readFile ./bash-prompt.sh;
|
||||
interactiveShellInit = builtins.readFile ./bash-interactive-init.sh;
|
||||
programs = {
|
||||
fish.enable = true;
|
||||
bash = {
|
||||
enableCompletion = true;
|
||||
promptInit = builtins.readFile ./bash-prompt.sh;
|
||||
interactiveShellInit = builtins.readFile ./bash-interactive-init.sh;
|
||||
};
|
||||
};
|
||||
# Prompt rapide et plein de fonctionnalités
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
time.disabled = false;
|
||||
shell.disabled = false;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern
|
||||
programs.ssh.extraConfig = ''
|
||||
|
||||
@@ -13,6 +13,7 @@ in
|
||||
|
||||
system.autoUpgrade.enable = flags.auto-upgrade;
|
||||
nix = {
|
||||
package = pkgs.nixUnstable;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
@@ -27,4 +28,12 @@ in
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
|
||||
# Affichage des modifications de profil (maj/ajout/suppression) dans le terminal
|
||||
system.activationScripts.diff = {
|
||||
supportsDryActivation = true;
|
||||
text = ''
|
||||
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1659981942,
|
||||
"narHash": "sha256-uCFiP/B/NXOWzhN6TKfMbSxtVMk1bVnCrnJRjCF6RmU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "39d7f929fbcb1446ad7aa7441b04fb30625a4190",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
9
flake.nix
Normal file
9
flake.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
description = "Module NixOS de base Grudunet";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = { self, nixpkgs, ... }: {
|
||||
nixosModules.default = import ./base.nix ;
|
||||
};
|
||||
}
|
||||
4
lib.nix
4
lib.nix
@@ -1,5 +1,7 @@
|
||||
{pkgs, ... }:
|
||||
|
||||
let
|
||||
lib = with import <nixpkgs> {}; pkgs.lib;
|
||||
lib = pkgs.lib;
|
||||
|
||||
profiles = {
|
||||
isDesktopEnvironment = {
|
||||
|
||||
@@ -20,7 +20,6 @@ mkIf flags.print {
|
||||
enable = true;
|
||||
drivers = [
|
||||
pkgs.samsung-unified-linux-driver
|
||||
pkgs.fxlinuxprint
|
||||
pkgs.gutenprint
|
||||
];
|
||||
# Suppression automatique des fichiers temporaires.
|
||||
|
||||
@@ -13,7 +13,6 @@ mkIf flags.scanner {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Driver
|
||||
hplip # Scanner HP
|
||||
python39Packages.pyqt4 # dépendance hplip
|
||||
|
||||
# Outils pour exploiter les scanners
|
||||
simple-scan
|
||||
|
||||
Reference in New Issue
Block a user