add nfss to tailscale and syncthing

This commit is contained in:
Yan Lin 2026-01-07 17:05:58 +01:00
parent 250bbfef49
commit a9dc3ee76d
3 changed files with 11 additions and 1 deletions

View file

@ -4,6 +4,7 @@
imports = [ imports = [
../home-default.nix ../home-default.nix
../../../modules/tex.nix ../../../modules/tex.nix
../../../modules/syncthing.nix
../../../modules/schedule.nix ../../../modules/schedule.nix
]; ];

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../system-default.nix ../system-default.nix
../../../modules/tailscale.nix
../../../modules/login-display.nix ../../../modules/login-display.nix
]; ];
@ -119,4 +120,9 @@
diskUsagePaths = [ "/" "/home/" ]; diskUsagePaths = [ "/" "/home/" ];
}; };
services.tailscale-custom = {
exitNode = true;
subnetRoutes = [ "10.1.1.0/24" ];
};
} }

View file

@ -22,7 +22,7 @@ let
stignoreContent = lib.concatStringsSep "\n" commonIgnores; stignoreContent = lib.concatStringsSep "\n" commonIgnores;
# Device groupings # Device groupings
pcDevices = [ "macbook" "imac" "thinkpad" ]; pcDevices = [ "macbook" "imac" "thinkpad" "nfss" ];
touchDevices = [ "iphone" "ipad" ]; touchDevices = [ "iphone" "ipad" ];
allDevices = pcDevices ++ touchDevices; allDevices = pcDevices ++ touchDevices;
@ -81,6 +81,9 @@ in
"imac" = { "imac" = {
id = "2ST6EEF-KN3R2E6-PN64WAS-XGJ22NV-BAWAQX6-OCZLYE3-V5IM2SE-S22REAA"; id = "2ST6EEF-KN3R2E6-PN64WAS-XGJ22NV-BAWAQX6-OCZLYE3-V5IM2SE-S22REAA";
}; };
"nfss" = {
id = "S4QZW76-BOLIOW7-DVP326F-JIGW5DW-3PAD47L-OA456LB-2L6JZW7-YUGJRA6";
};
}; };
# Define shared folders (only enabled ones) # Define shared folders (only enabled ones)