xdg: Only create needed dirs

This commit is contained in:
Geoffrey Frogeye 2024-06-24 15:53:09 +02:00
parent ea1c390bc0
commit 91e71bec07
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 2 additions and 2 deletions

View file

@ -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}";

View file

@ -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 {