mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
* atuin: add launchd socket path regression tests * atuin: use default daemon socket path on launchd Atuin 18.24.0 and later creates the parent directory only for its own default socket path. Keep the legacy XDG socket path default for older versions, but let newer versions use their default path under launchd.
27 lines
691 B
Nix
27 lines
691 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.atuin = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage {
|
|
name = "atuin";
|
|
version = "18.24.0";
|
|
};
|
|
daemon.enable = true;
|
|
themes.unrelated.theme.name = "Unrelated";
|
|
};
|
|
|
|
nmt.script = ''
|
|
configFile=home-files/.config/atuin/config.toml
|
|
|
|
assertFileExists "$configFile"
|
|
assertFileRegex "$configFile" '^enabled = true$'
|
|
assertFileRegex "$configFile" '^systemd_socket = false$'
|
|
assertFileNotRegex "$configFile" '^socket_path ='
|
|
|
|
assertFileContent \
|
|
"$(normalizeStorePaths LaunchAgentRestartTriggers/org.nix-community.home.atuin-daemon.json)" \
|
|
${./expected-restart-triggers.json}
|
|
'';
|
|
}
|