mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09:07 +01:00
18 lines
363 B
Nix
18 lines
363 B
Nix
{ self, ... }:
|
|
{
|
|
perSystem =
|
|
{
|
|
self',
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
packages =
|
|
"${self}/scripts"
|
|
|> builtins.readDir
|
|
|> lib.attrNames
|
|
|> lib.map (name: name |> lib.removeSuffix ".nix")
|
|
|> self.lib.genAttrs (name: import "${self}/scripts/${name}.nix" { inherit self' pkgs lib; });
|
|
};
|
|
}
|