nixos/nar-serve: add domain option

This commit is contained in:
zimbatm 2024-07-31 09:06:48 +02:00
parent 091f5f6540
commit 5a353f15cc

View File

@ -34,6 +34,17 @@ in
- gs:// for binary caches stored in Google Cloud Storage
'';
};
domain = mkOption {
type = types.str;
default = "";
description = ''
When set, enables the feature of serving <nar-hash>.<domain>
on top of <domain>/nix/store/<nar-hash>-<pname>.
Useful to preview static websites where paths are absolute.
'';
};
};
};