mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-16 10:58:15 +01:00
containers(wine): Migrate to setup.nix
This commit is contained in:
parent
aca37da408
commit
1bfdcaa96c
@ -1,4 +1,5 @@
|
||||
containers.wine = {
|
||||
{ stylix, home-manager, ... }: {
|
||||
privateNetwork = true;
|
||||
ephemeral = true;
|
||||
|
||||
@ -34,6 +35,9 @@
|
||||
|
||||
config = { pkgs, ... }: {
|
||||
imports = [
|
||||
stylix.nixosModules.stylix
|
||||
home-manager.nixosModules.home-manager
|
||||
../setup.nix
|
||||
../modules/pipewire.nix
|
||||
];
|
||||
|
||||
@ -43,7 +47,6 @@
|
||||
starship.enable = true;
|
||||
};
|
||||
|
||||
|
||||
users = {
|
||||
defaultUserShell = pkgs.fish;
|
||||
mutableUsers = false;
|
||||
@ -57,39 +60,12 @@
|
||||
|
||||
environment = {
|
||||
shells = with pkgs; [ fish ];
|
||||
|
||||
variables = {
|
||||
TERM = "xterm-kitty";
|
||||
};
|
||||
|
||||
defaultPackages = [ ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kitty
|
||||
wineWowPackages.stagingFull
|
||||
winetricks
|
||||
];
|
||||
|
||||
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;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user