feat: add prismlauncher

nixos
Moritz Böhme 2024-11-11 13:22:46 +01:00
parent 1540b22752
commit 14c1cafcd8
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
3 changed files with 28 additions and 0 deletions

View File

@ -22,6 +22,7 @@
impermanence.enable = true;
webis.enable = true;
};
programs.prismlauncher.enable = true;
services.wallpaper.enable = true;
};

View File

@ -56,6 +56,7 @@ in
".local/share/JetBrains"
".local/share/direnv"
".local/share/nvim"
".local/share/PrismLauncher/"
".local/share/zoxide"
".local/state/nvim"
".mozilla"

View File

@ -0,0 +1,26 @@
{ 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 ];
};
}