feat: add prismlauncher
This commit is contained in:
parent
1540b22752
commit
14c1cafcd8
3 changed files with 28 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
impermanence.enable = true;
|
||||
webis.enable = true;
|
||||
};
|
||||
programs.prismlauncher.enable = true;
|
||||
services.wallpaper.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ in
|
|||
".local/share/JetBrains"
|
||||
".local/share/direnv"
|
||||
".local/share/nvim"
|
||||
".local/share/PrismLauncher/"
|
||||
".local/share/zoxide"
|
||||
".local/state/nvim"
|
||||
".mozilla"
|
||||
|
|
26
modules/programs/prismlauncher.nix
Normal file
26
modules/programs/prismlauncher.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue