mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
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 https://github.com/atuinsh/atuin/pull/2171.
This commit is contained in:
parent
77a792a041
commit
e952e94955
1 changed files with 7 additions and 2 deletions
|
@ -195,11 +195,16 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
systemd.user.sockets.atuin-daemon = {
|
||||
systemd.user.sockets.atuin-daemon = let
|
||||
socket_dir = if versionAtLeast cfg.package.version "18.4.0" then
|
||||
"%t"
|
||||
else
|
||||
"%D/atuin";
|
||||
in {
|
||||
Unit = { Description = "Atuin daemon socket"; };
|
||||
Install = { WantedBy = [ "sockets.target" ]; };
|
||||
Socket = {
|
||||
ListenStream = "%D/atuin/atuin.sock";
|
||||
ListenStream = "${socket_dir}/atuin.sock";
|
||||
SocketMode = "0600";
|
||||
RemoveOnStop = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue