1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-15 17:50:51 +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:
Physics Enthusiast 2023-08-13 08:38:40 +00:00 committed by GitHub
parent 9d812be0a8
commit 32603de0dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ in {
Type = "oneshot"; Type = "oneshot";
ExecStart = script; ExecStart = script;
}; };
Install.WantedBy = [ "default.target" ]; Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session.target" ] else [ "default.target" ];
}; };
launchd.agents.sops-nix = { launchd.agents.sops-nix = {