summary refs log tree commit diff
path: root/util.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-04 03:26:19 +0100
committerMel <einebeere@gmail.com>2024-11-04 03:26:19 +0100
commit9a52eff1c92d63ea7309a4b0768f572973b5a6e6 (patch)
treefe565a90381c7716ba093b4ba11b432f8b0494eb /util.nix
parent2fc26761a1e93e6212845ebd005eab71da704d6e (diff)
downloadnetwork-9a52eff1c92d63ea7309a4b0768f572973b5a6e6.tar.zst
network-9a52eff1c92d63ea7309a4b0768f572973b5a6e6.zip
Add basic renard server config
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'util.nix')
-rw-r--r--util.nix7
1 files changed, 7 insertions, 0 deletions
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));
+}