formatted everything, things are looking nice now.
This commit is contained in:
parent
5dbe5ff071
commit
d2d4054aa5
57 changed files with 2269 additions and 2311 deletions
|
@ -1,5 +1,6 @@
|
|||
{ config, lib, inputs, pkgs, ... }:
|
||||
with lib; let
|
||||
with lib;
|
||||
let
|
||||
username = config.modules.other.system.username;
|
||||
cfg = config.modules.programs.minecraft;
|
||||
in {
|
||||
|
@ -10,19 +11,17 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
# Set wayland environment flag
|
||||
environment.variables = mkIf cfg.wayland {
|
||||
__GL_THREADED_OPTIMIZATIONS=0;
|
||||
};
|
||||
environment.variables =
|
||||
mkIf cfg.wayland { __GL_THREADED_OPTIMIZATIONS = 0; };
|
||||
# Install glfw-wayland-minecraft
|
||||
environment.systemPackages = with pkgs; mkIf cfg.wayland [
|
||||
environment.systemPackages = with pkgs;
|
||||
mkIf cfg.wayland [
|
||||
glfw-wayland-minecraft # Use these parameters in the prism launcher: -Dfml.earlyprogresswindow=false -Dorg.lwjgl.glfw.libname=/nix/store/ypkdx5844pp1vdw2z2nmnf2nb9kgl0mp-glfw-wayland-minecraft-unstable-2023-06-01/lib/libglfw.so
|
||||
];
|
||||
];
|
||||
|
||||
home-manager.users.${username} = {
|
||||
# Install minecraft
|
||||
home.packages = with pkgs; [
|
||||
prismlauncher
|
||||
];
|
||||
home.packages = with pkgs; [ prismlauncher ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue