Other function

This commit is contained in:
Nox Sluijtman 2024-01-12 15:02:17 +01:00
parent 02ccf8f35a
commit bfaf19c87d
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,4 @@
{ pkgs, ... }: {
getKittyColorscheme = pkgs.callPackage ./nightmare/getKittyColorscheme.nix { };
getKittyColorscheme = pkgs.callPackage ./nightmare/getKittyColorscheme.nix {};
writeNuShellScript = pkgs.callPackage ./nightmare/writeNuShellScript.nix {};
}

View file

@ -0,0 +1,12 @@
{ nushell, writeTextFile, ... }:
name: text:
let writeNuShellScript =
writeTextFile {
inherit name;
executable = true;
text = ''
#!${nushell}/bin/nu
${text}
'';
};
in writeNuShellScript