From 22d05f8fa2bb4ed7d6371dd3d1b7b21c28c78f27 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 22 Sep 2021 15:53:29 +0200 Subject: [PATCH] nixos/plotinus: fix evaluation Apparently setting a variable via `environment.variables` when the same is already present in `environment.sessionVariables` (that is merged into the former option) creates a conflict. For reference: this started with the change in #101274. --- nixos/modules/programs/plotinus.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/plotinus.nix b/nixos/modules/programs/plotinus.nix index e3549c79588b..2c90a41ba029 100644 --- a/nixos/modules/programs/plotinus.nix +++ b/nixos/modules/programs/plotinus.nix @@ -30,7 +30,7 @@ in ###### implementation config = mkIf cfg.enable { - environment.variables.XDG_DATA_DIRS = [ "${pkgs.plotinus}/share/gsettings-schemas/${pkgs.plotinus.name}" ]; + environment.sessionVariables.XDG_DATA_DIRS = [ "${pkgs.plotinus}/share/gsettings-schemas/${pkgs.plotinus.name}" ]; environment.variables.GTK3_MODULES = [ "${pkgs.plotinus}/lib/libplotinus.so" ]; }; }