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:
parent
4e4ceeb6fb
commit
01458011ab
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user