From 14c1cafcd8aa52505af11a3bbb208f1bfd7619ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 11 Nov 2024 13:22:46 +0100 Subject: [PATCH] feat: add prismlauncher --- hosts/nixos-desktop/default.nix | 1 + modules/profiles/impermanence.nix | 1 + modules/programs/prismlauncher.nix | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 modules/programs/prismlauncher.nix diff --git a/hosts/nixos-desktop/default.nix b/hosts/nixos-desktop/default.nix index b3d88b7..6804d69 100644 --- a/hosts/nixos-desktop/default.nix +++ b/hosts/nixos-desktop/default.nix @@ -22,6 +22,7 @@ impermanence.enable = true; webis.enable = true; }; + programs.prismlauncher.enable = true; services.wallpaper.enable = true; }; diff --git a/modules/profiles/impermanence.nix b/modules/profiles/impermanence.nix index 93568f7..992519f 100644 --- a/modules/profiles/impermanence.nix +++ b/modules/profiles/impermanence.nix @@ -56,6 +56,7 @@ in ".local/share/JetBrains" ".local/share/direnv" ".local/share/nvim" + ".local/share/PrismLauncher/" ".local/share/zoxide" ".local/state/nvim" ".mozilla" diff --git a/modules/programs/prismlauncher.nix b/modules/programs/prismlauncher.nix new file mode 100644 index 0000000..54c01aa --- /dev/null +++ b/modules/programs/prismlauncher.nix @@ -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 ]; + }; +}