Unverified Commit 48d85cad authored by Janne Heß's avatar Janne Heß Committed by GitHub
Browse files

nixos/oxidized: allow for providing config by other means (#431687)

parents 9ba77d6e f976e535
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ in
    };

    configFile = lib.mkOption {
      type = lib.types.path;
      type = lib.types.nullOr lib.types.path;
      example = lib.literalExpression ''
        pkgs.writeText "oxidized-config.yml" '''
          ---
@@ -122,6 +122,8 @@ in
        };
      };

    }
    // lib.optionalAttrs (cfg.configFile != null) {
      "${cfg.dataDir}/.config/oxidized/config" = {
        "L+" = {
          argument = "${cfg.configFile}";