From 9a52eff1c92d63ea7309a4b0768f572973b5a6e6 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 4 Nov 2024 03:26:19 +0100 Subject: Add basic renard server config Signed-off-by: Mel --- util.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 util.nix (limited to 'util.nix') diff --git a/util.nix b/util.nix new file mode 100644 index 0000000..e783f3b --- /dev/null +++ b/util.nix @@ -0,0 +1,7 @@ +{ lib }: +{ + titleCase = str: with lib.strings; let + firstCharUpper = s: concatStrings [(toUpper (substring 0 1 s)) (substring 1 (stringLength s) s)]; + in + concatStringsSep " " (map firstCharUpper (splitString " " str)); +} -- cgit 1.4.1