Skip to content

Commit

Permalink
fix(atuin): remove zfs workarounds, use daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
water-sucks committed Oct 2, 2024
1 parent 5ce2e67 commit 1646eed
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
20 changes: 20 additions & 0 deletions home/profiles/base/atuin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
...
}: let
inherit (pkgs.stdenv) isLinux;

atuinCfg = config.programs.atuin;
in
lib.mkMerge [
{
Expand All @@ -19,6 +21,9 @@ in
enter_accept = "false";
common_subcommands = ["nixos"];
common_prefix = ["sudo"];
daemon = {
enabled = true;
};
};
};
programs.zsh.initExtra = ''
Expand All @@ -31,5 +36,20 @@ in
".local/share/atuin"
];
};

systemd.user.services.atuind = {
Unit = {
Description = "atuin daemon";
};
Install = {
WantedBy = ["default.target"];
};
Service = {
ExecStart = "${atuinCfg.package}/bin/atuin daemon";
Restart = "on-failure";
RestartSec = 1;
Environment = ["ATUIN_LOG=info"];
};
};
})
]
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@
options = ["size=4G" "mode=777"];
};

# Disabled sync in this dataset so atuin can run faster.
# Synchronous writes go brr: https://github.com/atuinsh/atuin/issues/952
"/persist/home/varun/.local/share/atuin" = {
device = "locker/persist/varun-atuin";
fsType = "zfs";
neededForBoot = true;
};

"/etc/ssh" = {
depends = ["/persist"];
neededForBoot = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@
options = ["size=4G" "mode=777"];
};

# Disabled sync in this dataset so atuin can run faster.
# Synchronous writes go brr: https://github.com/atuinsh/atuin/issues/952
"/persist/home/varun/.local/share/atuin" = {
device = "locker/persist/varun-atuin";
fsType = "zfs";
neededForBoot = true;
};

"/etc/ssh" = {
depends = ["/persist"];
neededForBoot = true;
Expand Down

0 comments on commit 1646eed

Please sign in to comment.