This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / games / flake-module.nix
683 B 31 lines
1{ 2 inputs, 3 lib, 4 self, 5 ... 6}: 7{ 8 perSystem = 9 { pkgs, ... }: 10 let 11 gameDirs = builtins.filter (name: name != "lib") ( 12 builtins.attrNames ( 13 lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./.) 14 ) 15 ); 16 17 buildGame = name: 18 let 19 result = builtins.tryEval (pkgs.callPackage ./${name} { }); 20 in 21 if result.success then result.value else null; 22 23 games = lib.filterAttrs (_: v: v != null) ( 24 lib.genAttrs gameDirs buildGame 25 ); 26 in 27 { 28 # Expose via legacyPackages so `nix run .#games.haunted-ps1-demo-disc-2021` works 29 legacyPackages.games = games; 30 }; 31}