nixos/modules/crans/default.nix

42 lines
616 B
Nix

{
lib,
info,
...
}:
let
inherit (lib)
mkIf
optional
;
in
{
imports = [
./age.nix
./grub.nix
./home.nix
./locale.nix
./networking.nix
./ntp.nix
./restic_client.nix
./monitoring.nix
./motd.nix
./nullmailer.nix
./packages.nix
./ssh.nix
./store.nix
./users.nix
./virtualisation.nix
];
# Options ../info/meta.nix
config = mkIf info.enable {
warnings = (
optional (
info.isVm != (info.id >= 100)
) "${info.name}: isVm (${toString info.isVm}) est incohérent avec son id (${toString info.id})"
);
};
}