From 91e71bec07c9d25a1d7751bf7055450376707c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Mon, 24 Jun 2024 15:53:09 +0200 Subject: [PATCH] xdg: Only create needed dirs --- hm/desktop/screenshots/default.nix | 2 +- options.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hm/desktop/screenshots/default.nix b/hm/desktop/screenshots/default.nix index 0ea05f4..0c3568f 100644 --- a/hm/desktop/screenshots/default.nix +++ b/hm/desktop/screenshots/default.nix @@ -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}"; diff --git a/options.nix b/options.nix index 20f917b..33654cf 100644 --- a/options.nix +++ b/options.nix @@ -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 {