From 1b9ac0615fceaa9a0a6d5c70e74f2d7f94c1cdb0 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Wed, 30 Oct 2024 20:02:37 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(wget):=20Respect=20XDG=20spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/wget/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home/wget/default.nix b/home/wget/default.nix index a56b0c9..7898c32 100644 --- a/home/wget/default.nix +++ b/home/wget/default.nix @@ -1,4 +1,9 @@ -{pkgs, ...}: { +{ + pkgs, + lib, + config, + ... +}: { home.packages = with pkgs; [ wget ]; @@ -8,4 +13,8 @@ source = ./wgetrc; target = "wgetrc"; }; + + home.sessionVariables = lib.mkIf config.home.preferXdgDirectories { + WGETRC = "${config.xdg.configHome}/wgetrc"; + }; }