I tried going all in on dendritic, but I think I'm gonna go for a lighter approach
This commit is contained in:
parent
a4698d2a62
commit
1a586c2d90
97 changed files with 240 additions and 3899 deletions
42
modules/nix/pkgs-by-name.nix
Normal file
42
modules/nix/pkgs-by-name.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
inputs,
|
||||
withSystem,
|
||||
...
|
||||
}:
|
||||
{
|
||||
flake-file.inputs = {
|
||||
pkgs-by-name-for-flake-parts.url = "github:drupol/pkgs-by-name-for-flake-parts";
|
||||
packages = {
|
||||
url = "path:./packages";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.pkgs-by-name-for-flake-parts.flakeModule
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{ system, ... }:
|
||||
{
|
||||
pkgsDirectory = inputs.packages;
|
||||
};
|
||||
|
||||
flake = {
|
||||
overlays.default = _final: prev: {
|
||||
local = withSystem prev.stdenv.hostPlatform.system ({ config, ... }: config.packages);
|
||||
};
|
||||
|
||||
modules.generic.pkgs-by-name =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
nixpkgs-stable.overlays = [
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue