Files
nixos/home/progs/steam-shortcuts.nix
Simon Gardling 3865ceac0f
All checks were successful
Build and Deploy / mreow (push) Successful in 7m57s
Build and Deploy / yarn (push) Successful in 1m11s
Build and Deploy / muffin (push) Successful in 1m3s
fh5 things
2026-05-07 17:33:35 -04:00

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