From 78a0e634fc8981d6b564f08b6715c69a755c4c7d Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Thu, 24 Oct 2024 15:39:25 +0800 Subject: [PATCH] fix(home-manager/sops): fix setting systemd unit environment --- modules/home-manager/sops.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index 850f1c7..72c8c82 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -260,7 +260,7 @@ in { Type = "oneshot"; ExecStart = script; }; - Environment = builtins.concatStringsSep " " (lib.mapAttrsToList (name: value: "'${name}=${value}'") cfg.environment); + Environment = cfg.environment; Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session-pre.target" ] else [ "default.target" ]; };