fix(infra): typo enabled → enable

This commit is contained in:
jeltz 2025-04-07 20:27:10 +02:00
parent 8129b26c4c
commit c7b9a8d839
Signed by: jeltz
GPG key ID: 800882B66C0C3326
2 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@ in
services.openssh.enable = true; services.openssh.enable = true;
networking.nftables.enable = true; networking.nftables.enable = true;
infra.enabled = true; infra.enable = true;
backups.enable = true; backups.enable = true;
# Enable system diffs. # Enable system diffs.

View file

@ -99,7 +99,7 @@ let
}; };
in { in {
options.infra = { options.infra = {
enabled = lib.mkEnableOption "Réseau INFRA"; enable = lib.mkEnableOption "Réseau INFRA";
hub = lib.mkOption { hub = lib.mkOption {
type = lib.types.nullOr (lib.types.submodule { type = lib.types.nullOr (lib.types.submodule {
options = { options = {
@ -144,7 +144,7 @@ in {
}; };
}; };
config = lib.mkIf cfg.enabled { config = lib.mkIf cfg.enable {
systemd.network = lib.mkMerge [ systemd.network = lib.mkMerge [
(lib.mkIf isHub hubNetwork) (lib.mkIf isHub hubNetwork)
(lib.mkIf (!isHub) leafNetwork) (lib.mkIf (!isHub) leafNetwork)