1
0
forked from extern/nix-config
donovanglover-nix-config/containers/wine.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

2023-06-23 21:48:29 +02:00
{ stylix, home-manager, ... }:
{
2023-06-22 21:12:24 +02:00
containers.wine = {
privateNetwork = true;
ephemeral = true;
bindMounts = {
"/mnt" = {
hostPath = "/home/user/containers/wine";
isReadOnly = false;
};
waylandDisplay = rec {
hostPath = "/run/user/1000";
mountPoint = hostPath;
};
x11Display = rec {
hostPath = "/tmp/.X11-unix";
mountPoint = hostPath;
};
dri = rec {
hostPath = "/dev/dri";
mountPoint = hostPath;
};
};
allowedDevices = [
{
modifier = "rw";
node = "/dev/dri/renderD128";
}
];
2023-06-13 15:06:39 +02:00
config = { pkgs, ... }: {
imports = [
2023-06-22 18:51:35 +02:00
stylix.nixosModules.stylix
home-manager.nixosModules.home-manager
../setup.nix
../modules/pipewire.nix
];
2023-06-11 15:51:26 +02:00
environment.systemPackages = with pkgs; [
wineWowPackages.stagingFull
2023-06-11 15:51:26 +02:00
winetricks
];
environment.sessionVariables = {
LC_ALL = "ja_JP.UTF-8";
TZ = "Asia/Tokyo";
WINEPREFIX = "/mnt/wine";
};
2023-06-11 15:51:26 +02:00
};
};
}