mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 01:49:08 +01:00
13 lines
318 B
Nix
13 lines
318 B
Nix
{ self, ... }:
|
|
{
|
|
perSystem =
|
|
{ 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 pkgs; });
|
|
};
|
|
}
|