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