diff options
| author | scouckel <james.krinsky@gmail.com> | 2026-04-04 02:35:03 +0200 |
|---|---|---|
| committer | scouckel <james.krinsky@gmail.com> | 2026-04-04 02:35:03 +0200 |
| commit | 9a58c5f1857549f17e98adc9e385e4c4fb20d53a (patch) | |
| tree | b7a59b50831ace76e879758f24a5750aa865c727 /modules/nixosModules/desktop/tailscale.nix | |
| parent | 50044b7a87bc9f59452855a96a2013c9b000a0a1 (diff) | |
everything is updated, everything is wonderful
Diffstat (limited to 'modules/nixosModules/desktop/tailscale.nix')
| -rw-r--r-- | modules/nixosModules/desktop/tailscale.nix | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/modules/nixosModules/desktop/tailscale.nix b/modules/nixosModules/desktop/tailscale.nix new file mode 100644 index 0000000..f2ab9fc --- /dev/null +++ b/modules/nixosModules/desktop/tailscale.nix @@ -0,0 +1,75 @@ +{ lib, ... }: { + flake.nixosModules.tailscaleDesktop = { config, ... }: { + services.tailscale = { + enable = true; + useRoutingFeatures = "client"; + openFirewall = true; + }; + + networking.firewall = { + enable = lib.mkDefault true; + trustedInterfaces = [ "tailscale0" ]; + allowedUDPPorts = [ config.services.tailscale.port ]; + }; + }; + + flake.nixosModules.nasClient = { pkgs, ... }: { + boot.supportedFilesystems = [ "nfs" ]; + + environment.systemPackages = with pkgs; [ nfs-utils ]; + + fileSystems."/mnt/data" = { + device = "100.64.0.2:/tank/data"; + fsType = "nfs4"; + + options = [ + "x-systemd.automount" + "noauto" + "nofail" + "_netdev" + + "hard" + "noatime" + + "x-systemd.mount-timeout=10" + "x-systemd.idle-timeout=600" + ]; + }; + + fileSystems."/mnt/backups" = { + device = "100.64.0.2:/tank/backups"; + fsType = "nfs4"; + + options = [ + "x-systemd.automount" + "noauto" + "nofail" + "_netdev" + + "hard" + "noatime" + + "x-systemd.mount-timeout=10" + "x-systemd.idle-timeout=600" + ]; + }; + + fileSystems."/mnt/media" = { + device = "100.64.0.2:/tank/media"; + fsType = "nfs4"; + + options = [ + "x-systemd.automount" + "noauto" + "nofail" + "_netdev" + + "hard" + "noatime" + + "x-systemd.mount-timeout=10" + "x-systemd.idle-timeout=600" + ]; + }; + }; +} |
