26 lines
533 B
Nix
26 lines
533 B
Nix
{ config
|
|
, lib
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.my.programs.prismlauncher;
|
|
|
|
prismlauncher = pkgs.runCommandNoCC "prismlauncher"
|
|
{
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
|
} ''
|
|
makeWrapper ${lib.getExe pkgs.prismlauncher} $out/bin/prismlauncher \
|
|
--set QT_STYLE_OVERRIDE "" \
|
|
--set QT_QPA_PLATFORMTHEME "gtk3"
|
|
'';
|
|
in
|
|
{
|
|
options.my.programs.prismlauncher.enable = mkEnableOption "prismlauncher";
|
|
|
|
config = mkIf cfg.enable {
|
|
users.users.moritz.packages = [ prismlauncher ];
|
|
};
|
|
}
|