Other function
This commit is contained in:
parent
02ccf8f35a
commit
bfaf19c87d
|
@ -1,3 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
getKittyColorscheme = pkgs.callPackage ./nightmare/getKittyColorscheme.nix { };
|
getKittyColorscheme = pkgs.callPackage ./nightmare/getKittyColorscheme.nix {};
|
||||||
|
writeNuShellScript = pkgs.callPackage ./nightmare/writeNuShellScript.nix {};
|
||||||
}
|
}
|
||||||
|
|
12
nightmare/writeNuShellScript.nix
Normal file
12
nightmare/writeNuShellScript.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ nushell, writeTextFile, ... }:
|
||||||
|
name: text:
|
||||||
|
let writeNuShellScript =
|
||||||
|
writeTextFile {
|
||||||
|
inherit name;
|
||||||
|
executable = true;
|
||||||
|
text = ''
|
||||||
|
#!${nushell}/bin/nu
|
||||||
|
${text}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in writeNuShellScript
|
Loading…
Reference in a new issue