35 lines
888 B
Nix
35 lines
888 B
Nix
# Declarative non-Steam game shortcuts for the Steam library.
|
|
# Add entries to the `shortcuts` list to have them appear in Steam's UI.
|
|
{
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
inputs.json2steamshortcut.homeModules.default
|
|
];
|
|
|
|
services.steam-shortcuts = {
|
|
enable = true;
|
|
overwriteExisting = true;
|
|
steamUserId = lib.strings.toInt (
|
|
lib.strings.trim (builtins.readFile ../../secrets/home/steam-user-id)
|
|
);
|
|
shortcuts = [
|
|
{
|
|
AppName = "Prism Launcher";
|
|
Exe = "${pkgs.prismlauncher}/bin/prismlauncher";
|
|
Icon = "${pkgs.prismlauncher}/share/icons/hicolor/scalable/apps/org.prismlauncher.PrismLauncher.svg";
|
|
Tags = [ "Game" ];
|
|
}
|
|
{
|
|
AppName = "FH5 Car Table";
|
|
Exe = "${pkgs.callPackage ../util/fh5-car-table.nix { }}/bin/fh5-car-table";
|
|
Tags = [ "Utility" ];
|
|
}
|
|
];
|
|
};
|
|
}
|