Files
nixos-template-base/module-template.nix

33 lines
520 B
Nix
Raw Normal View History

2016-08-11 19:56:15 +02:00
{ config, lib, pkgs, ... }:
let
2016-08-12 11:51:40 +02:00
inherit (lib) mkIf mkMerge mkThenElse;
2017-04-28 16:24:04 +02:00
annuaire = config.r6d.machines;
currentMachine = annuaire."${config.networking.fqdn}";
flags = currentMachine.configurationFlags;
2016-08-11 19:56:15 +02:00
in
mkIf true {
2016-08-12 11:51:40 +02:00
# Paquets
environment.systemPackages = with pkgs; [
];
# Services
# Réseau
networking.firewall = {
allowedTCPPorts = [
];
allowedUDPPorts = [
];
};
} // {
assertions = [
{
assertion = true;
message = "Assetion toujours valide.";
}
];
2016-08-11 19:56:15 +02:00
}