all repos — mycal @ b0daf3a62894800d3fd84329e7f767abd6e98e43

private calendar anonymiser

fix nixos module file/url types

Alan Pearce
commit

b0daf3a62894800d3fd84329e7f767abd6e98e43

parent

7705a1d7144eb3a692e774ff8d506a680874617a

1 file changed, 6 insertions(+), 4 deletions(-)

changed files
M flake.nixflake.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. '';