From 5db9d7269e10b779757e12ec692641d9161d1f48 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 6 Aug 2024 18:43:27 +0100 Subject: [PATCH] ppoe structured options are optional --- modules/ppp/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ppp/default.nix b/modules/ppp/default.nix index 495cde2..8cef94f 100644 --- a/modules/ppp/default.nix +++ b/modules/ppp/default.nix @@ -13,7 +13,11 @@ let inherit (lib) mkOption types; inherit (pkgs) liminix; mkStringOption = - description: mkOption { type = types.str; inherit description; }; + description: mkOption { + type = types.nullOr types.str; + default = null; + inherit description; + }; in { options = { system.service.pppoe = mkOption {