File tree Expand file tree Collapse file tree
modules/home/programs/terminal/tools/atuin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 config ,
33 lib ,
4- osConfig ,
4+ osConfig ? { } ,
55 pkgs ,
66 ...
77} :
1010
1111 cfg = config . khanelinix . programs . terminal . tools . atuin ;
1212
13- # Get log paths from Darwin system config if available, otherwise use defaults
14- logPaths =
15- if
16- pkgs . stdenv . hostPlatform . isDarwin
17- && ( osConfig . khanelinix . programs . terminal . tools . atuin . enable or false )
18- then
19- osConfig . khanelinix . programs . terminal . tools . atuin . logPaths
20- else
21- {
22- stdout = "${ config . home . homeDirectory } /Library/Logs/atuin/atuin.out.log" ;
23- stderr = "${ config . home . homeDirectory } /Library/Logs/atuin/atuin.err.log" ;
24- } ;
2513in
2614{
2715 options . khanelinix . programs . terminal . tools . atuin = {
3018 } ;
3119
3220 config = mkIf cfg . enable {
33- launchd . agents . atuin-daemon . config = {
34- StandardErrorPath = logPaths . stderr ;
35- StandardOutPath = logPaths . stdout ;
21+ launchd . agents . atuin-daemon . config = lib . mkIf pkgs . stdenv . hostPlatform . isDarwin {
22+ StandardErrorPath = osConfig . khanelinix . programs . terminal . tools . atuin . logPaths . stderr ;
23+ StandardOutPath = osConfig . khanelinix . programs . terminal . tools . atuin . logPaths . stdout ;
3624 } ;
3725
3826 programs . atuin = {
You can’t perform that action at this time.
0 commit comments