fix(infra): typo enabled → enable
This commit is contained in:
parent
8129b26c4c
commit
c7b9a8d839
2 changed files with 3 additions and 3 deletions
2
hive.nix
2
hive.nix
|
@ -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.
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue