diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 15:14:23 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 15:14:23 -0500 |
| commit | 21f682f819934c3fedace641b0cbc8087a32c719 (patch) | |
| tree | 73bacb00cc2d472646223692f784584c5eed26ae /users/timmy/home.nix | |
| parent | 3141590096b1bc5d4c9d3dfea774d8a3089bd7b2 (diff) | |
| download | nixos-21f682f819934c3fedace641b0cbc8087a32c719.tar.xz nixos-21f682f819934c3fedace641b0cbc8087a32c719.zip | |
cleanup gtk bookmarks and nas
Diffstat (limited to 'users/timmy/home.nix')
| -rw-r--r-- | users/timmy/home.nix | 10 |
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 = { |
