Compare commits

...

21 Commits

Author SHA1 Message Date
Yves Dubromelle
0dd2698082 stateVersion devrait être propre à chaque machine (fixé à l'installation) 2023-09-07 09:50:17 +02:00
Yves Dubromelle
9d5db185b3 nux instable recommandé pour les flakes 2023-09-07 09:50:16 +02:00
Yves Dubromelle
3fcc75fc55 tentative conversion flake 2023-09-07 09:50:16 +02:00
Yves Dubromelle
66f27557f7 -pyqt4: plus dans les paquets 2023-09-07 09:49:58 +02:00
Yves Dubromelle
d237134bcd client dhcp supprimé des paquets 2023-08-20 19:09:40 +02:00
Yves Dubromelle
1abecd8f8a écouteur de capteurs sur 433 MHz 2023-08-15 23:36:18 +02:00
Yves Dubromelle
f6a58ed4e4 ajout de logiciels SDR 2023-08-15 19:49:21 +02:00
Yves Dubromelle
e2cb3422bd upstream: fonts -> packages 2023-08-15 19:49:05 +02:00
Yves Dubromelle
cb013ea75f affichage dans le terminal des maj/ajout/suppression 2023-08-05 14:57:18 +02:00
Yves Dubromelle
542ae88339 transmission-qt fait du remote également (plus récent que transgui) 2023-08-05 14:55:11 +02:00
Yves Dubromelle
cbb90ffad0 transmission-remote est mort, on passe à transgui 2023-07-30 22:30:46 +02:00
Yves Dubromelle
1064756989 upstream: chmt clean /tmp on boot 2023-07-27 13:36:43 +02:00
Yves Dubromelle
cc2199054b activation du super prompt starfish 2023-07-25 00:34:41 +02:00
Yves Dubromelle
9f9cb0cf94 fish a sa place à côté de bash 2023-07-25 00:34:17 +02:00
Yves Dubromelle
a44decfa44 fxlinuxprint ne semble plus dispo en ligne 2023-07-24 22:39:07 +02:00
Yves Dubromelle
cadee242a0 rust: il est conseillé de faire tout passer par rustup 2023-07-24 22:34:56 +02:00
Yves Dubromelle
342ccbf143 ajout de delta 2023-07-01 22:26:37 +02:00
Yves Dubromelle
2270cf730d vim: ajout client LSP ALE 2023-07-01 21:35:19 +02:00
Yves Dubromelle
589f090d6f LSP pour nix et bash 2023-07-01 15:29:17 +02:00
Yves Dubromelle
838d1f4895 éditeur helix 2023-07-01 15:29:07 +02:00
Yves Dubromelle
280eb0714a gnome3 -> gnome 2022-10-04 09:43:55 +02:00
17 changed files with 84 additions and 19 deletions

View File

@@ -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

View File

@@ -28,6 +28,7 @@ environment.systemPackages = with pkgs; [
# Transfert de fichier
filezilla
transmission-gtk
transmission-remote-gtk
transmission-qt
transgui
];
}

View File

@@ -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

View File

@@ -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
];
}

View File

@@ -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

View File

@@ -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;

View File

@@ -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
];

View File

@@ -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;

View File

@@ -10,11 +10,11 @@ let
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
start = [
wombat256-vim
ale
];
opt = [
elm-vim
vim-fish
vim-nix
vimwiki
];
};

View File

@@ -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

View File

@@ -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 = ''

View File

@@ -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
View 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
View 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 ;
};
}

View File

@@ -1,5 +1,7 @@
{pkgs, ... }:
let
lib = with import <nixpkgs> {}; pkgs.lib;
lib = pkgs.lib;
profiles = {
isDesktopEnvironment = {

View File

@@ -20,7 +20,6 @@ mkIf flags.print {
enable = true;
drivers = [
pkgs.samsung-unified-linux-driver
pkgs.fxlinuxprint
pkgs.gutenprint
];
# Suppression automatique des fichiers temporaires.

View File

@@ -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