From 01458011ab7fec97386ed76963709f3698170b52 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 1 Aug 2023 12:18:04 -0400 Subject: [PATCH] containers(wine): Add sakaya This works, which is pretty cool. One unfortunate consequence is that networking with the host is required, thus an alternative approach needs to be considered if one still wants to eliminate internet access from certain wine applications. --- containers/wine.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/containers/wine.nix b/containers/wine.nix index 72b119e..64a1a95 100644 --- a/containers/wine.nix +++ b/containers/wine.nix @@ -1,9 +1,11 @@ -{ stylix, home-manager, ... }: +{ stylix, home-manager, sakaya, ... }: { containers.wine = { privateNetwork = true; ephemeral = true; + hostAddress = "192.168.100.34"; + localAddress = "192.168.100.49"; bindMounts = { "/mnt" = { @@ -42,9 +44,21 @@ ../modules/pipewire.nix ]; + networking.nat.forwardPorts = [ + { + destination = "192.168.100.49:39493"; + sourcePort = 39493; + } + ]; + + networking.firewall = { + allowedTCPPorts = [ 39493 ]; + }; + environment.systemPackages = with pkgs; [ wineWowPackages.stagingFull winetricks + sakaya.packages."x86_64-linux".sakaya ]; environment.sessionVariables = {