mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
xdg-user-dirs: add 'projects'
This commit is contained in:
committed by
Austin Horstman
parent
12ceb3974a
commit
4bfce11ea8
@@ -76,6 +76,13 @@ in
|
||||
description = "The Pictures directory.";
|
||||
};
|
||||
|
||||
projects = mkOption {
|
||||
type = with types; nullOr (coercedTo path toString str);
|
||||
default = "${config.home.homeDirectory}/Projects";
|
||||
defaultText = literalExpression ''"''${config.home.homeDirectory}/Projects"'';
|
||||
description = "The Projects directory.";
|
||||
};
|
||||
|
||||
publicShare = mkOption {
|
||||
type = with types; nullOr (coercedTo path toString str);
|
||||
default = "${config.home.homeDirectory}/Public";
|
||||
@@ -175,6 +182,7 @@ in
|
||||
DOWNLOAD = cfg.download;
|
||||
MUSIC = cfg.music;
|
||||
PICTURES = cfg.pictures;
|
||||
PROJECTS = cfg.projects;
|
||||
PUBLICSHARE = cfg.publicShare;
|
||||
TEMPLATES = cfg.templates;
|
||||
VIDEOS = cfg.videos;
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
XDG_MISC_DIR="/home/hm-user/Misc"
|
||||
XDG_MUSIC_DIR="/home/hm-user/Music"
|
||||
XDG_PICTURES_DIR="/home/hm-user/Pictures"
|
||||
XDG_PROJECTS_DIR="/home/hm-user/Projects"
|
||||
XDG_PUBLICSHARE_DIR="/home/hm-user/Public"
|
||||
XDG_TEMPLATES_DIR="/home/hm-user/Templates"
|
||||
XDG_VIDEOS_DIR="/home/hm-user/Videos"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
XDG_DOWNLOAD_DIR="/home/hm-user/Downloads"
|
||||
XDG_MUSIC_DIR="/home/hm-user/Music"
|
||||
XDG_PICTURES_DIR="/home/hm-user/Pictures"
|
||||
XDG_PROJECTS_DIR="/home/hm-user/Projects"
|
||||
XDG_PUBLICSHARE_DIR="/home/hm-user/Public"
|
||||
XDG_TEMPLATES_DIR="/home/hm-user/Templates"
|
||||
XDG_VIDEOS_DIR="/home/hm-user/Videos"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
XDG_DOWNLOAD_DIR="/home/hm-user/Downloads"
|
||||
XDG_MUSIC_DIR="/home/hm-user/Music"
|
||||
XDG_PICTURES_DIR="/home/hm-user/Pictures"
|
||||
XDG_PROJECTS_DIR="/home/hm-user/Projects"
|
||||
XDG_PUBLICSHARE_DIR="/home/hm-user/Public"
|
||||
XDG_TEMPLATES_DIR="/home/hm-user/Templates"
|
||||
XDG_VIDEOS_DIR="/home/hm-user/Videos"
|
||||
|
||||
Reference in New Issue
Block a user