mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 19:29:47 +01:00
parent
4b04050953
commit
c8323a0bf1
1 changed files with 8 additions and 2 deletions
|
@ -11,6 +11,12 @@ in
|
||||||
{
|
{
|
||||||
meta.maintainers = with maintainers; [ pacien ];
|
meta.maintainers = with maintainers; [ pacien ];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(mkRenamedOptionModule
|
||||||
|
[ "xdg" "userDirs" "publishShare" ]
|
||||||
|
[ "xdg" "userDirs" "publicShare" ])
|
||||||
|
];
|
||||||
|
|
||||||
options.xdg.userDirs = {
|
options.xdg.userDirs = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
@ -56,7 +62,7 @@ in
|
||||||
description = "The Pictures directory.";
|
description = "The Pictures directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
publishShare = mkOption {
|
publicShare = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "$HOME/Public";
|
default = "$HOME/Public";
|
||||||
description = "The Public share directory.";
|
description = "The Public share directory.";
|
||||||
|
@ -90,7 +96,7 @@ in
|
||||||
XDG_DOWNLOAD_DIR = cfg.download;
|
XDG_DOWNLOAD_DIR = cfg.download;
|
||||||
XDG_MUSIC_DIR = cfg.music;
|
XDG_MUSIC_DIR = cfg.music;
|
||||||
XDG_PICTURES_DIR = cfg.pictures;
|
XDG_PICTURES_DIR = cfg.pictures;
|
||||||
XDG_PUBLICSHARE_DIR = cfg.publishShare;
|
XDG_PUBLICSHARE_DIR = cfg.publicShare;
|
||||||
XDG_TEMPLATES_DIR = cfg.templates;
|
XDG_TEMPLATES_DIR = cfg.templates;
|
||||||
XDG_VIDEOS_DIR = cfg.videos;
|
XDG_VIDEOS_DIR = cfg.videos;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue