Skip to content

Commit

Permalink
fix(home-manager/sops): fix setting unit env
Browse files Browse the repository at this point in the history
The Environment option should be set in Service section.
  • Loading branch information
Prince213 authored and mergify[bot] committed Oct 26, 2024
1 parent 78a0e63 commit b2211d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/home-manager/sops.nix
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ in {
};
Service = {
Type = "oneshot";
Environment = builtins.concatStringsSep " " (lib.mapAttrsToList (name: value: "'${name}=${value}'") cfg.environment);
ExecStart = script;
};
Environment = cfg.environment;
Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session-pre.target" ] else [ "default.target" ];
};

Expand Down

0 comments on commit b2211d1

Please sign in to comment.