diff options
| author | adikro <adikro@disroot.org> | 2026-04-19 14:22:05 +0200 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-04-19 14:22:05 +0200 |
| commit | 97eec64e5b301c9b25a31289ef909df2f2eb11e5 (patch) | |
| tree | 8eabed219255d3a2c01b95d6217b3b41453c43fc /os/core | |
| parent | c5e8dbead2c96d178e5cce2190581ca3e0381a8a (diff) | |
added sunshine and tailscale
Diffstat (limited to 'os/core')
| -rw-r--r-- | os/core/default.nix | 1 | ||||
| -rw-r--r-- | os/core/drivers.nix | 5 | ||||
| -rw-r--r-- | os/core/tailscale.nix | 19 |
3 files changed, 24 insertions, 1 deletions
diff --git a/os/core/default.nix b/os/core/default.nix index 160e67b..1899553 100644 --- a/os/core/default.nix +++ b/os/core/default.nix @@ -17,6 +17,7 @@ in ./security.nix ./ssh.nix ./storage.nix + ./tailscale.nix ./users.nix ]; diff --git a/os/core/drivers.nix b/os/core/drivers.nix index 3764937..ca5ecc4 100644 --- a/os/core/drivers.nix +++ b/os/core/drivers.nix @@ -86,7 +86,10 @@ in initrd.enable = true; overdrive.enable = true; }; - graphics.extraPackages = [ pkgs.rocmPackages.clr.icd ]; + graphics.extraPackages = with pkgs; [ + rocmPackages.clr.icd + libva-utils + ]; }; }) (lib.mkIf (cfg.graphics.enable && cfg.graphics.version == "git") { diff --git a/os/core/tailscale.nix b/os/core/tailscale.nix new file mode 100644 index 0000000..795fdbb --- /dev/null +++ b/os/core/tailscale.nix @@ -0,0 +1,19 @@ +{ config, lib, ... }: +let + cfg = config.os.core.tailscale; +in +{ + options.os.core.tailscale.enable = lib.mkEnableOption "enables tailscale vpn"; + + config = lib.mkIf cfg.enable { + services.tailscale = { + enable = true; + openFirewall = true; + useRoutingFeatures = "client"; + }; + networking.firewall = { + trustedInterfaces = [ "tailscale0" ]; + checkReversePath = "loose"; + }; + }; +} |
