summaryrefslogtreecommitdiff
path: root/users/timmy/home.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/timmy/home.nix')
-rw-r--r--users/timmy/home.nix10
1 files changed, 5 insertions, 5 deletions
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 = {