Compare commits

..

No commits in common. 'flakes' and 'nixos-unstable' have entirely different histories.

@ -21,7 +21,7 @@ mkIf currentMachine.profiles.isDesktopEnvironment {
xorg.xkill # pour 'tuer une application'
## Gestionnaire de fenêtre & Thème
gnome.adwaita-icon-theme # thème d'icone - semble fonctionner avec spaceFM
gnome3.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.packages = with pkgs; [
fonts.fonts = 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,7 +28,6 @@ environment.systemPackages = with pkgs; [
# Transfert de fichier
filezilla
transmission-gtk
transmission-qt
transgui
transmission-remote-gtk
];
}

@ -15,8 +15,6 @@ 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; [
gnome.seahorse # gestionnaire graphique de clef GPG
gnome3.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.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
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
];
};

@ -14,6 +14,7 @@ mkIf true {
# Adminsys
bind # utilisé pour les utilitaires comme dig
cowsay # pour ansible & 4lulz
dhcp # client dhcp
iotop
lm_sensors
lshw

@ -31,12 +31,9 @@ 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,6 +12,8 @@ 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,7 +23,6 @@ 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,9 +5,6 @@ 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,11 +9,10 @@ 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)
# https://github.com/NixOS/nixpkgs/issues/97252
#system.copySystemConfiguration = true;
system.copySystemConfiguration = true;
# On autorise les paquets non-libres
nixpkgs.config.allowUnfree = true;
@ -22,7 +21,7 @@ in
#security.grsecurity.enable = true;
# Ménage de /tmp au boot
boot.tmp.cleanOnBoot = true;
boot.cleanTmpDir = true;
# Activation des pages de manuel
documentation.man.enable = true;
@ -45,24 +44,12 @@ in
byobu-adminsys = "/etc/nixos/base/byobu-adminsys";
};
};
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;
};
programs.bash = {
enableCompletion = true;
promptInit = builtins.readFile ./bash-prompt.sh;
interactiveShellInit = builtins.readFile ./bash-interactive-init.sh;
};
# https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern
programs.ssh.extraConfig = ''
# Ensure KnownHosts are unreadable if leaked - it is otherwise easier to know which hosts your keys have access to.

@ -13,7 +13,6 @@ in
system.autoUpgrade.enable = flags.auto-upgrade;
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
@ -28,12 +27,4 @@ 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"
'';
};
}

@ -1,27 +0,0 @@
{
"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
}

@ -1,9 +0,0 @@
{
description = "Module NixOS de base Grudunet";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, ... }: {
nixosModules.default = import ./base.nix ;
};
}

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

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

@ -13,6 +13,7 @@ mkIf flags.scanner {
environment.systemPackages = with pkgs; [
# Driver
hplip # Scanner HP
python39Packages.pyqt4 # dépendance hplip
# Outils pour exploiter les scanners
simple-scan

Loading…
Cancel
Save