mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-14 08:36:54 +01:00
25 lines
551 B
Nix
25 lines
551 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
users.users.cloudflared = {
|
|
group = "cloudflared";
|
|
isSystemUser = true;
|
|
};
|
|
users.groups.cloudflared = { };
|
|
|
|
environment.systemPackages = [
|
|
pkgs.cloudflared
|
|
];
|
|
|
|
systemd.services.cloudflared_tunnel = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
after = [ "network.target" ];
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.cloudflared}/bin/cloudflared tunnel --no-autoupdate run --token=TODO_FIXSECRETS";
|
|
Restart = "always";
|
|
User = "cloudflared";
|
|
Group = "cloudflared";
|
|
};
|
|
};
|
|
}
|