Skip to content

Commit e952e94

Browse files
committed
atuin: Prepare for daemon socket path in 18.4.0
The path is changing in 18.4.0 to XDG_RUNTIME_DIR over XDG_DATA_DIR so update the specifier. See atuinsh/atuin#2171.
1 parent 77a792a commit e952e94

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/programs/atuin.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,16 @@ in {
195195
};
196196
};
197197

198-
systemd.user.sockets.atuin-daemon = {
198+
systemd.user.sockets.atuin-daemon = let
199+
socket_dir = if versionAtLeast cfg.package.version "18.4.0" then
200+
"%t"
201+
else
202+
"%D/atuin";
203+
in {
199204
Unit = { Description = "Atuin daemon socket"; };
200205
Install = { WantedBy = [ "sockets.target" ]; };
201206
Socket = {
202-
ListenStream = "%D/atuin/atuin.sock";
207+
ListenStream = "${socket_dir}/atuin.sock";
203208
SocketMode = "0600";
204209
RemoveOnStop = true;
205210
};

0 commit comments

Comments
 (0)