fix nixos module file/url types
1 file changed, 6 insertions(+), 4 deletions(-)
changed files
M flake.nix → flake.nix
@@ -169,15 +169,17 @@ default = { }; type = types.submodule { options = { file = mkOption { - type = types.str; - default = "/path/to/calendar/file"; + type = with types; nullOr str; + default = null; + example = "/path/to/calendar/file"; description = '' Path to the calendar file. Preferred over URL. ''; }; url = mkOption { - type = types.str; - default = "https://example.com/calendar"; + type = with types; nullOr str; + default = null; + example = "https://example.com/calendar.ics"; description = '' URL to the calendar file. '';