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";
flake = false;
};
};
outputs = { nixpkgs, self, ...} @ inputs:
@ -43,7 +42,7 @@
username = "frostphoenix";
in
{
# overlays.default = selfPkgs.overlay;
overlays.default = selfPkgs.overlay;
nixosConfigurations = import ./modules/core/default.nix {
inherit self nixpkgs inputs username;
};

View file

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