mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
feat(nix): Don't hardcode package outputs
In order to determine the name of a package you want to include in your own nix-config, simply copy the filename without the .nix part.
This commit is contained in:
parent
5674d3ed81
commit
d1513228d0
@ -35,13 +35,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
packages."x86_64-linux" = with nixpkgs.legacyPackages."x86_64-linux"; {
|
||||
aleo-fonts = callPackage ./packages/aleo-fonts.nix { };
|
||||
fluent-icons = callPackage ./packages/fluent-icons.nix { };
|
||||
hycov = callPackage ./packages/hycov.nix { };
|
||||
osu-backgrounds = callPackage ./packages/osu-backgrounds.nix { };
|
||||
webp-thumbnailer = callPackage ./packages/webp-thumbnailer.nix { };
|
||||
};
|
||||
packages."x86_64-linux" = with nixpkgs.legacyPackages."x86_64-linux";
|
||||
builtins.mapAttrs (name: value: callPackage ./packages/${name}) (builtins.readDir ./packages);
|
||||
|
||||
overlays = builtins.mapAttrs (name: value: import ./overlays/${name}) (builtins.readDir ./overlays);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user