add my own game to exported pkgs

This commit is contained in:
Frost-Phoenix 2024-01-03 22:45:47 +01:00
parent 09d61f5416
commit 59f3414122
2 changed files with 13 additions and 17 deletions

View file

@ -34,7 +34,6 @@
url = "github:catppuccin/starship"; url = "github:catppuccin/starship";
flake = false; flake = false;
}; };
}; };
outputs = { nixpkgs, self, ...} @ inputs: outputs = { nixpkgs, self, ...} @ inputs:
@ -43,7 +42,7 @@
username = "frostphoenix"; username = "frostphoenix";
in in
{ {
# overlays.default = selfPkgs.overlay; overlays.default = selfPkgs.overlay;
nixosConfigurations = import ./modules/core/default.nix { nixosConfigurations = import ./modules/core/default.nix {
inherit self nixpkgs inputs username; inherit self nixpkgs inputs username;
}; };

View file

@ -1,15 +1,12 @@
{ default, ... }: rec{
{ overlay = final: prev:
systems = ["x86_64-linux"]; let
dirContents = builtins.readDir ../pkgs;
perSystem = { genPackage = name: {
pkgs, inherit name;
inputs', value = final.callPackage (../pkgs + "/${name}") { };
... };
}: { names = builtins.attrNames dirContents;
packages = { in
_2048 = pkgs.callPackage ./2048 {}; builtins.listToAttrs (map genPackage names);
}
};
};
}