Les nouvelles règles dans NixOS obligent à avoir dans networking.hostName un label DNS strict, il faut donc préciser le domaine à part dans networking.domain. networking.fqdn est une facilité pour concaténer les deux, en lecture seule.
33 lines
535 B
Nix
33 lines
535 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf mkMerge mkThenElse;
|
|
annuaire = config.r6d.machines;
|
|
currentMachine = annuaire."${config.networking.fqdn}";
|
|
flags = currentMachine.configurationFlags;
|
|
in
|
|
|
|
mkIf flags.nixos-manual {
|
|
|
|
# Paquets
|
|
environment.systemPackages = with pkgs; [
|
|
bc
|
|
mailutils
|
|
];
|
|
|
|
# Services
|
|
|
|
## documentation sur ctrl + alt + F8
|
|
documentation.nixos = {
|
|
enable = true;
|
|
};
|
|
|
|
# Réseau
|
|
networking.firewall = {
|
|
allowedTCPPorts = [
|
|
];
|
|
allowedUDPPorts = [
|
|
];
|
|
};
|
|
}
|