feat: add vesuvio
This commit is contained in:
parent
5917dab7e7
commit
9eadd0a4d9
21 changed files with 251 additions and 153 deletions
21
systems/vesuvio/default.nix
Normal file
21
systems/vesuvio/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{config, ...}: {
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
|
||||
services.openssh.openFirewall = true;
|
||||
|
||||
services.frp = {
|
||||
enable = true;
|
||||
role = "server";
|
||||
settings = {
|
||||
bindPort = 7000;
|
||||
auth = {
|
||||
method = "token";
|
||||
token = "{{ .Envs.FRP_TOKEN }}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets.frpToken.file = ../../secrets/etna/frpToken.age;
|
||||
systemd.services.frp.serviceConfig.EnvironmentFile = config.age.secrets.frpToken.path;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue