depot/hosts/VEGAS/services/nix/nar-serve.nix

14 lines
325 B
Nix
Raw Normal View History

2021-10-16 21:24:25 +03:00
{ 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}";
};
}