Fix atuin when the system doesn't power off properly
This commit is contained in:
parent
f92a7d0bc9
commit
b97907ebcd
1 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
age,
|
age,
|
||||||
hostname,
|
hostname,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -47,13 +48,19 @@
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [ "default.target" ];
|
WantedBy = [ "default.target" ];
|
||||||
};
|
};
|
||||||
Service.ExecStart = "${lib.getExe pkgs.atuin} daemon";
|
Service = {
|
||||||
|
# ExecStartPre = "${lib.getExe' pkgs.toybox "rm"} -f ${config.programs.atuin.settings.daemon.socket_path}";
|
||||||
|
ExecStart = "${lib.getExe pkgs.atuin} daemon";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.atuin = {
|
programs.atuin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
daemon.enabled = true;
|
daemon = {
|
||||||
|
enabled = true;
|
||||||
|
socket_path = "/home/ccr/.local/share/atuin/atuin.sock"; # FIXME using ~ or $HOME doesn't work: https://github.com/atuinsh/atuin/issues/2289
|
||||||
|
};
|
||||||
auto_sync = true;
|
auto_sync = true;
|
||||||
sync_frequency = "5m";
|
sync_frequency = "5m";
|
||||||
sync_address = "http://sisko.fleet:8889";
|
sync_address = "http://sisko.fleet:8889";
|
||||||
|
|
Loading…
Add table
Reference in a new issue