xdg-user-dirs: add 'projects'
This commit is contained in:
parent
12ceb3974a
commit
4bfce11ea8
4 changed files with 11 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue