{ config, lib, pkgs, ... }: let inherit (lib) mkIf mkMerge mkThenElse; annuaire = config.r6d.machines; currentMachine = annuaire."${config.networking.hostName}"; flags = currentMachine.configuration-flags; in mkIf flags.scanner { # Paquets environment.systemPackages = with pkgs; [ simple-scan ]; # Services hardware.sane.enable = true; # Réseau networking.firewall = { allowedTCPPorts = [ ]; allowedUDPPorts = [ ]; }; }