xdg: Only create needed dirs
This commit is contained in:
parent
ea1c390bc0
commit
91e71bec07
|
@ -6,7 +6,7 @@ let
|
|||
in
|
||||
{
|
||||
config = lib.mkIf config.frogeye.desktop.xorg {
|
||||
xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR = "${config.home.homeDirectory}/Screenshots";
|
||||
frogeye.folders.screenshots.path = "Screenshots";
|
||||
xsession.windowManager.i3.config.keybindings = {
|
||||
"Print" = "exec ${scrot} --focused";
|
||||
"${mod}+Print" = "exec ${scrot}";
|
||||
|
|
|
@ -96,7 +96,7 @@ in
|
|||
};
|
||||
xdgUserDirVariable = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = "XDG_${lib.strings.toUpper name}_DIR";
|
||||
default = if config.enable then "XDG_${lib.strings.toUpper name}_DIR" else null;
|
||||
description = "Name for the XDG user dir variable. If set, will automatically create the directory.";
|
||||
};
|
||||
syncthing = lib.mkOption {
|
||||
|
|
Loading…
Reference in a new issue