forked from extern/nix-config
containers(wine): Migrate to setup.nix
This commit is contained in:
parent
aca37da408
commit
1bfdcaa96c
@ -1,4 +1,5 @@
|
|||||||
containers.wine = {
|
containers.wine = {
|
||||||
|
{ stylix, home-manager, ... }: {
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
|
|
||||||
@ -34,6 +35,9 @@
|
|||||||
|
|
||||||
config = { pkgs, ... }: {
|
config = { pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
stylix.nixosModules.stylix
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
../setup.nix
|
||||||
../modules/pipewire.nix
|
../modules/pipewire.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -43,7 +47,6 @@
|
|||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
defaultUserShell = pkgs.fish;
|
defaultUserShell = pkgs.fish;
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
@ -57,39 +60,12 @@
|
|||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
shells = with pkgs; [ fish ];
|
shells = with pkgs; [ fish ];
|
||||||
|
|
||||||
variables = {
|
|
||||||
TERM = "xterm-kitty";
|
|
||||||
};
|
|
||||||
|
|
||||||
defaultPackages = [ ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
kitty
|
|
||||||
wineWowPackages.stagingFull
|
wineWowPackages.stagingFull
|
||||||
winetricks
|
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