add desktop entry for holo script

This commit is contained in:
twoneis 2024-07-26 15:35:55 +02:00
parent 936f554a95
commit 5333ab9ded

View file

@ -1,12 +1,17 @@
{ lib, config, pkgs, ... }: let { lib, config, pkgs, ... }: let
inherit (lib) mkIf mkMerge; inherit (lib) mkIf mkMerge;
holo = pkgs.writeShellApplication { holo-script = pkgs.writeShellApplication {
name = "holo"; name = "holo-script";
runtimeInputs = [ pkgs.steam pkgs.gamescope ]; runtimeInputs = [ pkgs.steam pkgs.gamescope ];
text = '' text = ''
gamescope -f -h 1504 -w 2256 -r 60 -F fsr -e -- steam gamescope -f -h 1504 -w 2256 -r 60 -F fsr -e -- steam
''; '';
}; };
holo = pkgs.makeDesktopItem {
name = "holo";
desktopName = "Holo";
exec = "${holo-script}/bin/holo-script";
};
in mkIf config.withGames (mkMerge [ in mkIf config.withGames (mkMerge [
(mkIf config.withImpermanence { (mkIf config.withImpermanence {
environment.persistence."/persist".users.${config.username}= { environment.persistence."/persist".users.${config.username}= {