diff options
| author | Janne Heß <dasJ@users.noreply.github.com> | 2025-08-11 10:37:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-11 10:37:33 +0200 |
| commit | 48d85cad8dbc48320ced23496c04fa4a47425f10 (patch) | |
| tree | 224cfed711520f407b2d04eb6578c96344bc175d | |
| parent | cloudflared: 2025.7.0 -> 2025.8.0 (#432512) (diff) | |
| parent | nixos/oxidized: allow for providing config by other means (diff) | |
| download | nixpkgs-48d85cad8dbc48320ced23496c04fa4a47425f10.tar.gz | |
nixos/oxidized: allow for providing config by other means (#431687)
| -rw-r--r-- | nixos/modules/services/admin/oxidized.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/admin/oxidized.nix b/nixos/modules/services/admin/oxidized.nix index a00a5d388101..d581f1baa826 100644 --- a/nixos/modules/services/admin/oxidized.nix +++ b/nixos/modules/services/admin/oxidized.nix @@ -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}"; |
