From 21f682f819934c3fedace641b0cbc8087a32c719 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 15 Jun 2026 15:14:23 -0500 Subject: cleanup gtk bookmarks and nas --- users/timmy/home.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'users/timmy/home.nix') diff --git a/users/timmy/home.nix b/users/timmy/home.nix index 8464296..4d61600 100644 --- a/users/timmy/home.nix +++ b/users/timmy/home.nix @@ -59,11 +59,11 @@ in { }; # Setup gtk bookmarks - gtk.gtk3.bookmarks = ( - lib.mapAttrsToList (name: dir: - lib.mkIf (dir != null) "file://${dir} ${lib.toUpper (lib.substring 0 1 name)}${lib.substring 1 (-1) name}" # Make first letter upper case - ) userDirs - ); + gtk.gtk3.bookmarks = let + mkBookmark = name: dir: ''file://${dir} ${lib.toUpper (lib.substring 0 1 name)}${lib.substring 1 (-1) name}''; # Make first letter upper case + attrsToBookmarks = attrs: lib.mapAttrsToList (name: dir: lib.mkIf (dir != null) (mkBookmark name dir)) attrs; + bookmarksUserDirs = attrsToBookmarks userDirs; + in bookmarksUserDirs; # Setup neovim programs._neovim = { -- cgit v1.2.3