Skip to content

Commit

Permalink
chore: Simplify wine container
Browse files Browse the repository at this point in the history
Separate distinct containers seems useful, although I haven't measured
how much they'd increase the evaluation time yet.
  • Loading branch information
donovanglover committed Apr 7, 2024
1 parent ec496e1 commit dff7f88
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions containers/wine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,18 @@
let
inherit (nix-config.inputs) sakaya;
inherit (config.modules.system) username;
inherit (lib) singleton;

sakayaPort = 39493;
in
{
networking.nat.forwardPorts = [
{
destination = "192.168.100.49:39493";
sourcePort = 39493;
}
{
destination = "192.168.100.49:5029";
sourcePort = 5029;
}
];
networking.nat.forwardPorts = singleton {
destination = "192.168.100.49:${sakayaPort}";
sourcePort = sakayaPort;
};

networking.firewall.allowedTCPPorts = [
39493
5029
sakayaPort
];

systemd.services.sakaya = {
Expand All @@ -44,15 +40,6 @@ in
wineWowPackages.waylandFull
winetricks
sakaya.packages.${system}.sakaya
rar
unrar
iamb
srb2
];

nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"rar"
"unrar"
];

environment.sessionVariables = {
Expand Down

0 comments on commit dff7f88

Please sign in to comment.