depot/hosts/VEGAS/services/nix/nar-serve.nix
2022-01-14 22:49:38 +01:00

13 lines
325 B
Nix

{ inputs, pkgs, tools, ... }:
{
systemd.services.nar-serve = {
enable = true;
serviceConfig = {
DynamicUser = true;
User = "nar-serve";
};
script = "${inputs.nar-serve.defaultPackage."${pkgs.system}"}/bin/nar-serve";
environment.NAR_CACHE_URL = "https://cache.${tools.meta.domain}";
};
}