Unverified Commit 2f755c31 authored by dot-file's avatar dot-file Committed by GitHub
Browse files

nixos/ly: add types.nullOr in settings

Some options in ly's config.ini can have null as their value (for example, session_log), but the settings option in the NixOS module accepted only str, int and bool types.
parent bfb474d2
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -67,11 +67,13 @@ in
      settings = mkOption {
        type =
          with lib.types;
          attrsOf (oneOf [
          attrsOf (
            nullOr (oneOf [
              str
              int
              bool
          ]);
            ])
          );
        default = { };
        example = {
          load = false;