Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(tailscale): Misc tailscale fixes

Only include wireguard kernel module if necessary

Only send tag parameters if not empty

+4 -2
-1
nix/nixos/modules/kernel/default.nix
··· 12 12 kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; 13 13 kernelModules = [ 14 14 "i2c-dev" 15 - "wireguard" 16 15 ]; 17 16 }; 18 17 services.udev.extraRules = ''
+4 -1
nix/nixos/modules/tailscale/default.nix
··· 38 38 "tailscale-oauth-secret" = mkSecret "tailscale-oauth-secret" {}; 39 39 }; 40 40 41 + boot.kernelModules = ["wireguard"]; 41 42 services.tailscale = let 42 43 tags = 43 44 cfg.advertise.tags ··· 54 55 [ 55 56 "--accept-dns" 56 57 "--accept-routes" 57 - "--advertise-tags=${formattedTags}" 58 58 "--operator=${name.user}" 59 59 "--reset" # Forces unspecified arguments to default values 60 60 "--ssh" 61 61 ] 62 62 ++ lib.optionals cfg.advertise.exitNode [ 63 63 "--advertise-exit-node" 64 + ] 65 + ++ lib.optionals (tags != []) [ 66 + "--advertise-tags=${formattedTags}" 64 67 ]; 65 68 openFirewall = true; 66 69 useRoutingFeatures = "both";