add desktop entry for holo script
This commit is contained in:
parent
936f554a95
commit
5333ab9ded
1 changed files with 7 additions and 2 deletions
|
@ -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}= {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue