mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-17 02:00:50 +01:00
chore: Simplify wine container
Separate distinct containers seems useful, although I haven't measured how much they'd increase the evaluation time yet.
This commit is contained in:
parent
ec496e1a69
commit
dff7f88fc5
@ -3,22 +3,18 @@
|
|||||||
let
|
let
|
||||||
inherit (nix-config.inputs) sakaya;
|
inherit (nix-config.inputs) sakaya;
|
||||||
inherit (config.modules.system) username;
|
inherit (config.modules.system) username;
|
||||||
|
inherit (lib) singleton;
|
||||||
|
|
||||||
|
sakayaPort = 39493;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking.nat.forwardPorts = [
|
networking.nat.forwardPorts = singleton {
|
||||||
{
|
destination = "192.168.100.49:${sakayaPort}";
|
||||||
destination = "192.168.100.49:39493";
|
sourcePort = sakayaPort;
|
||||||
sourcePort = 39493;
|
};
|
||||||
}
|
|
||||||
{
|
|
||||||
destination = "192.168.100.49:5029";
|
|
||||||
sourcePort = 5029;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
39493
|
sakayaPort
|
||||||
5029
|
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.sakaya = {
|
systemd.services.sakaya = {
|
||||||
@ -44,15 +40,6 @@ in
|
|||||||
wineWowPackages.waylandFull
|
wineWowPackages.waylandFull
|
||||||
winetricks
|
winetricks
|
||||||
sakaya.packages.${system}.sakaya
|
sakaya.packages.${system}.sakaya
|
||||||
rar
|
|
||||||
unrar
|
|
||||||
iamb
|
|
||||||
srb2
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
||||||
"rar"
|
|
||||||
"unrar"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
Loading…
Reference in New Issue
Block a user