This commit is contained in:
4DBug
2026-02-09 01:41:48 -06:00
parent 782dfce269
commit de67d5e9ba
7 changed files with 30 additions and 24 deletions

View File

@@ -23,6 +23,7 @@
luajit luajit
nodejs nodejs
node2nix node2nix
cloudflared
] else []); ] else []);
file = {}; file = {};

View File

@@ -14,6 +14,7 @@
./modules/vscode-server.nix ./modules/vscode-server.nix
./modules/copyparty.nix ./modules/copyparty.nix
./modules/searxng.nix ./modules/searxng.nix
./modules/cloudflared.nix
({ pkgs, ... }: { ({ pkgs, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@@ -27,7 +28,6 @@
./modules/audio.nix ./modules/audio.nix
./modules/swap.nix ./modules/swap.nix
./modules/virtualisation.nix ./modules/virtualisation.nix
./modules/sshfs.nix
#./modules/firefox.nix #./modules/firefox.nix
]) ++ (if device == "laptop" then [ ]) ++ (if device == "laptop" then [

23
modules/cloudflared.nix Normal file
View File

@@ -0,0 +1,23 @@
{ config, pkgs, ... }:
let
TUNNEL_UUID = "4118935e-359b-4dd2-95bd-eb27f7b0c5bb";
in
{
environment.systemPackages = [ pkgs.cloudflared ];
services.cloudflared = {
enable = true;
tunnels."${TUNNEL_UUID}" = {
credentialsFile = "/home/bug/.cloudflared/${TUNNEL_UUID}.json";
default = "http_status:404";
ingress = {
#"tv.bug.tools" = "http://127.0.0.1:8080";
#"search.bug.tools" = "http://127.0.0.1:3000";
"files2.bug.tools" = "http://127.0.0.1:3210";
};
};
};
}

0
modules/pihole.nix Normal file
View File

View File

@@ -1,23 +0,0 @@
{ config, pkgs, ... }:
{
boot.supportedFilesystems = [ "fuse.sshfs" ];
environment.systemPackages = [ pkgs.sshfs ];
systemd.tmpfiles.rules = [
"d /mnt/box 0755 root root -"
];
fileSystems."/mnt/box" = {
device = "bug@box.bug.tools:/";
fsType = "fuse.sshfs";
options = [
"identityfile=/home/bug/.ssh/id_ed25519"
"allow_other"
"x-systemd.automount"
"noauto"
"reconnect"
"ServerAliveInterval=15"
];
};
}

View File

@@ -57,6 +57,11 @@
path = "/home/bug/.ssh"; path = "/home/bug/.ssh";
devices = ["desktop" "laptop" "server"]; devices = ["desktop" "laptop" "server"];
}; };
"cloudflared" = {
path = "/home/bug/.cloudflared";
devices = ["desktop" "laptop" "server"];
};
}; };
}; };
}; };