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

authored by Janne Heß and committed by GitHub 48d85cad 9ba77d6e

+3 -1
+3 -1
nixos/modules/services/admin/oxidized.nix
··· 36 36 }; 37 37 38 38 configFile = lib.mkOption { 39 - type = lib.types.path; 39 + type = lib.types.nullOr lib.types.path; 40 40 example = lib.literalExpression '' 41 41 pkgs.writeText "oxidized-config.yml" ''' 42 42 --- ··· 122 122 }; 123 123 }; 124 124 125 + } 126 + // lib.optionalAttrs (cfg.configFile != null) { 125 127 "${cfg.dataDir}/.config/oxidized/config" = { 126 128 "L+" = { 127 129 argument = "${cfg.configFile}";