summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-08-30 13:22:30 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-08-30 13:22:30 -0500
commit3909da3e26c3f657f8d6442f6187e181930fe8ac (patch)
tree3ef1cc7aed5c31e15b6e89d1c7c5d87a575aecbc /users
parentc2bac480a923dea1e065e82de71951cbef5edf29 (diff)
downloadnixos-3909da3e26c3f657f8d6442f6187e181930fe8ac.tar.xz
nixos-3909da3e26c3f657f8d6442f6187e181930fe8ac.zip
dont create unnessesary userDirs
Diffstat (limited to 'users')
-rw-r--r--users/timmy/default.nix9
1 files changed, 7 insertions, 2 deletions
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
);
};