aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-24 17:32:36 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-25 08:47:10 -0700
commit5ebe53d3608e24b24273faca45ec2413dbba0640 (patch)
tree156e24620fadc3e3b5bf0dffbb91ffa879042f7e
parentadd configuration for alacritty (diff)
downloadinfra-5ebe53d3608e24b24273faca45ec2413dbba0640.tar.gz
enable cloudflared on the vm
Diffstat (limited to '')
-rw-r--r--machines/nixos/x86_64-linux/vm-synology.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/machines/nixos/x86_64-linux/vm-synology.nix b/machines/nixos/x86_64-linux/vm-synology.nix
index 39c483f..eedf26e 100644
--- a/machines/nixos/x86_64-linux/vm-synology.nix
+++ b/machines/nixos/x86_64-linux/vm-synology.nix
@@ -1,5 +1,6 @@
{
adminUser,
+ config,
self,
...
}:
@@ -41,5 +42,19 @@
];
};
+ services.cloudflared = {
+ enable = true;
+ certificateFile = config.age.secrets.cloudflared-cert.path;
+ tunnels = {
+ "cragmont" = {
+ credentialsFile = config.age.secrets.cloudflared-tunnel.path;
+ default = "http_status:404";
+ ingress = {
+ "git.fcuny.net".service = "ssh://127.0.0.1:22";
+ };
+ };
+ };
+ };
+
system.stateVersion = "23.11"; # Did you read the comment?
}