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 ]; + }; +}