From 3909da3e26c3f657f8d6442f6187e181930fe8ac Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 30 Aug 2025 13:22:30 -0500 Subject: dont create unnessesary userDirs --- users/timmy/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'users/timmy/default.nix') diff --git a/users/timmy/default.nix b/users/timmy/default.nix index 313449d..659efde 100644 --- a/users/timmy/default.nix +++ b/users/timmy/default.nix @@ -9,6 +9,11 @@ download = "${home}/dls"; documents = "${home}/docs"; pictures = "${home}/pics"; + # Set these as null so they're not created + music = null; + publicShare = null; + templates = null; + videos = null; }; sshKeyPaths = [ "${home}/.ssh/id_ed25519" ]; sshPublicKeyPaths = lib.map (keyPath: keyPath + ".pub") sshKeyPaths; @@ -91,8 +96,8 @@ in { # Setup gtk bookmarks gtk.gtk3.bookmarks = ( - lib.mapAttrsToList (name: path: - "file://${path} ${lib.toUpper (lib.substring 0 1 name)}${lib.substring 1 (-1) name}" # Make first letter upper case + 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 ); }; -- cgit v1.2.3