diff --git a/flake.lock b/flake.lock index e7b1c56..3aa865e 100644 --- a/flake.lock +++ b/flake.lock @@ -6,7 +6,7 @@ "llm-agents", "nixpkgs" ], - "systems": "systems_2" + "systems": "systems_3" }, "locked": { "lastModified": 1771437256, @@ -153,7 +153,25 @@ }, "flake-utils": { "inputs": { - "systems": "systems_4" + "systems": "systems_2" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_2": { + "inputs": { + "systems": "systems_5" }, "locked": { "lastModified": 1731533236, @@ -256,6 +274,27 @@ "type": "github" } }, + "json2steamshortcut": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1763116114, + "narHash": "sha256-0gI7PnQUDZTFjhHgg0eP1SCJOvW5gw3sQ2UAMspipnQ=", + "owner": "ChrisOboe", + "repo": "json2steamshortcut", + "rev": "b829fe2871fd1736d2406724e4abbb492527cb08", + "type": "github" + }, + "original": { + "owner": "ChrisOboe", + "repo": "json2steamshortcut", + "type": "github" + } + }, "lanzaboote": { "inputs": { "crane": "crane", @@ -372,7 +411,7 @@ "nixpkgs": [ "nixpkgs" ], - "systems": "systems_3" + "systems": "systems_4" }, "locked": { "lastModified": 1771663801, @@ -479,7 +518,7 @@ }, "oh-my-opencode": { "inputs": { - "flake-utils": "flake-utils", + "flake-utils": "flake-utils_2", "nixpkgs": [ "nixpkgs" ] @@ -530,6 +569,7 @@ "home-manager": "home-manager", "impermanence": "impermanence", "jovian-nixos": "jovian-nixos", + "json2steamshortcut": "json2steamshortcut", "lanzaboote": "lanzaboote", "llm-agents": "llm-agents", "niri": "niri", @@ -623,6 +663,21 @@ "type": "github" } }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index 3cdd8eb..9c6dccd 100644 --- a/flake.nix +++ b/flake.nix @@ -84,6 +84,11 @@ url = "github:yebei199/oh-my-opencode/nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + + json2steamshortcut = { + url = "github:ChrisOboe/json2steamshortcut"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/home-manager/home-yarn.nix b/home-manager/home-yarn.nix index d6f4614..1d145a3 100644 --- a/home-manager/home-yarn.nix +++ b/home-manager/home-yarn.nix @@ -9,6 +9,7 @@ imports = [ ./gui.nix ./desktop.nix + inputs.json2steamshortcut.homeModules.default ]; home.packages = with pkgs; [ @@ -26,4 +27,18 @@ obs-pipewire-audio-capture ]; }; + + services.steam-shortcuts = { + enable = true; + overwriteExisting = true; + steamUserId = lib.strings.toInt (lib.strings.trim (builtins.readFile ./secrets/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" ]; + } + ]; + }; } diff --git a/home-manager/secrets/steam-user-id b/home-manager/secrets/steam-user-id new file mode 100644 index 0000000..deeb799 Binary files /dev/null and b/home-manager/secrets/steam-user-id differ