2023-06-03 21:36:26 +02:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
let hostCfg = config; in
|
|
|
|
|
2023-06-03 21:29:49 +02:00
|
|
|
{
|
|
|
|
containers.wine = {
|
|
|
|
privateNetwork = true;
|
|
|
|
|
|
|
|
bindMounts = {
|
|
|
|
"/home/user" = {
|
|
|
|
hostPath = "/home/user/containers/wine";
|
|
|
|
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;
|
|
|
|
isReadOnly = true;
|
|
|
|
};
|
2023-06-03 21:29:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = { pkgs, lib, ... }: {
|
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
neovim.enable = true;
|
|
|
|
starship.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
users = {
|
|
|
|
defaultUserShell = pkgs.fish;
|
|
|
|
mutableUsers = false;
|
|
|
|
allowNoPasswordLogin = true;
|
|
|
|
|
|
|
|
users.user = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/user";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
shells = with pkgs; [ fish ];
|
|
|
|
|
|
|
|
variables = {
|
|
|
|
TERM = "xterm-kitty";
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultPackages = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
kitty
|
|
|
|
wine-staging
|
|
|
|
winetricks
|
|
|
|
];
|
|
|
|
|
2023-06-03 21:36:26 +02:00
|
|
|
environment.sessionVariables = {
|
|
|
|
WAYLAND_DISPLAY = "wayland-1";
|
|
|
|
QT_QPA_PLATFORM = "wayland";
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
|
|
SDL_VIDEODRIVER = "wayland";
|
|
|
|
CLUTTER_BACKEND = "wayland";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
XDG_RUNTIME_DIR = "/run/user/1000";
|
|
|
|
DISPLAY = ":0";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = hostCfg.hardware.opengl.extraPackages;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
|
2023-06-03 21:29:49 +02:00
|
|
|
system.stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|