scripts: Move nebula scripts into subdirectory

This commit is contained in:
SebastianStork 2026-02-06 21:42:59 +01:00
parent b94ff46b24
commit 0f69eb0355
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
3 changed files with 11 additions and 4 deletions

View file

@ -10,9 +10,16 @@
{ {
packages = packages =
"${self}/scripts" "${self}/scripts"
|> builtins.readDir |> lib.filesystem.listFilesRecursive
|> lib.attrNames |> lib.map (file: {
|> lib.map (name: name |> lib.removeSuffix ".nix") name =
|> self.lib.genAttrs (name: import "${self}/scripts/${name}.nix" { inherit self' pkgs lib; }); file
|> lib.unsafeDiscardStringContext
|> lib.removePrefix "${self}/scripts/"
|> lib.removeSuffix ".nix"
|> lib.replaceString "/" "-";
value = import file { inherit self' pkgs lib; };
})
|> lib.listToAttrs;
}; };
} }