mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
Configure the systemd user service to start with graphical session if use of a passphrase is detected (#346)
* Update sops.nix systemd user service target * Use conditional to detect if gnupg.home is set before setting the WantedBy to graphical-session.target
This commit is contained in:
parent
9d812be0a8
commit
32603de0dc
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ in {
|
|||
Type = "oneshot";
|
||||
ExecStart = script;
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session.target" ] else [ "default.target" ];
|
||||
};
|
||||
|
||||
launchd.agents.sops-nix = {
|
||||
|
|
Loading…
Reference in a new issue