extraction de services & configuration générique
parent
3c7274848d
commit
453ad77953
@ -0,0 +1,14 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Définition des domaines utilisés lorsque un identifiant non-FQDN est donné (ping, nslookup)
|
||||||
|
networking = {
|
||||||
|
search = [
|
||||||
|
"dubronetwork.fr"
|
||||||
|
"prunetwork.fr"
|
||||||
|
"teleragno.fr"
|
||||||
|
"teleragno.net"
|
||||||
|
];
|
||||||
|
dnsExtensionMechanism = true;
|
||||||
|
};
|
||||||
|
}
|
@ -1,17 +1,6 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Définition des domaines utilisés lorsque un identifiant non-FQDN est donné (ping, nslookup)
|
|
||||||
networking = {
|
|
||||||
search = [
|
|
||||||
"dubronetwork.fr"
|
|
||||||
"prunetwork.fr"
|
|
||||||
"teleragno.fr"
|
|
||||||
"teleragno.net"
|
|
||||||
];
|
|
||||||
dnsExtensionMechanism = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Utilisation d'adresse IPv6 temporaire
|
# Utilisation d'adresse IPv6 temporaire
|
||||||
|
|
||||||
## https://blog.linitx.com/control-privacy-addressing-ipv6-linux/
|
## https://blog.linitx.com/control-privacy-addressing-ipv6-linux/
|
@ -0,0 +1,12 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Sécurité & Acces distant
|
||||||
|
|
||||||
|
## Augmentation de l'entropie du système par un générateur de nombres aléatoires
|
||||||
|
## cat /proc/sys/kernel/random/entropy_avail
|
||||||
|
services.haveged = {
|
||||||
|
enable = true;
|
||||||
|
refill_threshold = 2048;
|
||||||
|
};
|
||||||
|
}
|
@ -1,16 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Sécurité & Acces distant
|
# OpenSSH daemon
|
||||||
|
|
||||||
## Augmentation de l'entropie du système par un générateur de nombres aléatoires
|
|
||||||
## cat /proc/sys/kernel/random/entropy_avail
|
|
||||||
services.haveged = {
|
|
||||||
enable = true;
|
|
||||||
refill_threshold = 2048;
|
|
||||||
};
|
|
||||||
|
|
||||||
## OpenSSH daemon
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29
|
# https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29
|
Loading…
Reference in New Issue