1
0
forked from extern/nix-config

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.
This commit is contained in:
Donovan Glover 2023-08-01 12:18:04 -04:00
parent 4e4ceeb6fb
commit 01458011ab
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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 = {