2023-08-01 18:18:04 +02:00
|
|
|
{ stylix, home-manager, sakaya, ... }:
|
2023-06-23 21:48:29 +02:00
|
|
|
|
|
|
|
{
|
2023-06-22 21:12:24 +02:00
|
|
|
containers.wine = {
|
2023-06-03 21:29:49 +02:00
|
|
|
privateNetwork = true;
|
2023-06-16 20:21:23 +02:00
|
|
|
ephemeral = true;
|
2023-08-01 18:18:04 +02:00
|
|
|
hostAddress = "192.168.100.34";
|
|
|
|
localAddress = "192.168.100.49";
|
2023-06-03 21:29:49 +02:00
|
|
|
|
|
|
|
bindMounts = {
|
2023-06-22 17:43:19 +02:00
|
|
|
"/mnt" = {
|
|
|
|
hostPath = "/home/user/containers/wine";
|
2023-06-03 21:29:49 +02:00
|
|
|
isReadOnly = false;
|
|
|
|
};
|
2023-06-03 21:36:26 +02:00
|
|
|
|
|
|
|
waylandDisplay = rec {
|
|
|
|
hostPath = "/run/user/1000";
|
|
|
|
mountPoint = hostPath;
|
|
|
|
};
|
|
|
|
|
|
|
|
x11Display = rec {
|
|
|
|
hostPath = "/tmp/.X11-unix";
|
|
|
|
mountPoint = hostPath;
|
|
|
|
};
|
2023-06-16 20:22:57 +02:00
|
|
|
|
|
|
|
dri = rec {
|
|
|
|
hostPath = "/dev/dri";
|
|
|
|
mountPoint = hostPath;
|
|
|
|
};
|
2023-06-03 21:29:49 +02:00
|
|
|
};
|
|
|
|
|
2023-06-16 20:22:57 +02:00
|
|
|
allowedDevices = [
|
|
|
|
{
|
|
|
|
modifier = "rw";
|
|
|
|
node = "/dev/dri/renderD128";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2023-06-13 15:06:39 +02:00
|
|
|
config = { pkgs, ... }: {
|
2023-06-16 20:20:11 +02:00
|
|
|
imports = [
|
2023-06-22 18:51:35 +02:00
|
|
|
stylix.nixosModules.stylix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
../setup.nix
|
2023-06-16 20:20:11 +02:00
|
|
|
../modules/pipewire.nix
|
|
|
|
];
|
2023-06-22 15:50:04 +02:00
|
|
|
|
2023-08-01 18:18:04 +02:00
|
|
|
networking.nat.forwardPorts = [
|
|
|
|
{
|
|
|
|
destination = "192.168.100.49:39493";
|
|
|
|
sourcePort = 39493;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 39493 ];
|
|
|
|
};
|
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-06-21 17:27:02 +02:00
|
|
|
wineWowPackages.stagingFull
|
2023-06-11 15:51:26 +02:00
|
|
|
winetricks
|
2023-08-01 18:18:04 +02:00
|
|
|
sakaya.packages."x86_64-linux".sakaya
|
2023-06-11 15:51:26 +02:00
|
|
|
];
|
2023-06-22 20:59:02 +02:00
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
LC_ALL = "ja_JP.UTF-8";
|
|
|
|
TZ = "Asia/Tokyo";
|
2023-07-11 13:54:09 +02:00
|
|
|
WINEPREFIX = "/mnt/wine";
|
2023-06-22 20:59:02 +02:00
|
|
|
};
|
2023-06-11 15:51:26 +02:00
|
|
|
};
|
2023-06-03 21:29:49 +02:00
|
|
|
};
|
|
|
|
}
|