Skip to content

Commit

Permalink
xdg-user-dirs: fix typo in option name
Browse files Browse the repository at this point in the history
Fixes #985
PR #987
  • Loading branch information
0x6d6178 authored and rycee committed Jan 17, 2020
1 parent 4b04050 commit c8323a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/misc/xdg-user-dirs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ in
{
meta.maintainers = with maintainers; [ pacien ];

imports = [
(mkRenamedOptionModule
[ "xdg" "userDirs" "publishShare" ]
[ "xdg" "userDirs" "publicShare" ])
];

options.xdg.userDirs = {
enable = mkOption {
type = types.bool;
Expand Down Expand Up @@ -56,7 +62,7 @@ in
description = "The Pictures directory.";
};

publishShare = mkOption {
publicShare = mkOption {
type = types.str;
default = "$HOME/Public";
description = "The Public share directory.";
Expand Down Expand Up @@ -90,7 +96,7 @@ in
XDG_DOWNLOAD_DIR = cfg.download;
XDG_MUSIC_DIR = cfg.music;
XDG_PICTURES_DIR = cfg.pictures;
XDG_PUBLICSHARE_DIR = cfg.publishShare;
XDG_PUBLICSHARE_DIR = cfg.publicShare;
XDG_TEMPLATES_DIR = cfg.templates;
XDG_VIDEOS_DIR = cfg.videos;
}
Expand Down

0 comments on commit c8323a0

Please sign in to comment.