diff options
| author | David Morgan <djm_uk@protonmail.com> | 2026-02-16 17:09:42 +0000 |
|---|---|---|
| committer | David Morgan <djm_uk@protonmail.com> | 2026-02-16 17:13:03 +0000 |
| commit | 67d928312d5dad3812c83370cf3582353708dcec (patch) | |
| tree | 19231268a909ed8a066d78450eb31ee91d41cc35 /setup-system.sh | |
| parent | 7209a77751348b36bcaf70f5f6f9d4003f035020 (diff) | |
| download | dotfiles-67d928312d5dad3812c83370cf3582353708dcec.tar.gz | |
Use atuin sync to backup history
Diffstat (limited to 'setup-system.sh')
| -rwxr-xr-x | setup-system.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/setup-system.sh b/setup-system.sh index 1303e99..0ba286c 100755 --- a/setup-system.sh +++ b/setup-system.sh @@ -19,9 +19,18 @@ else if [ "$(uname 2> /dev/null)" = "Darwin" ]; then ln -sf $NIX_CONF /etc/nix-darwin + sudo xcode-select --install + sudo nix --extra-experimental-features nix-command --extra-experimental-features flakes run nix-darwin/master#darwin-rebuild -- switch fi fi nix run home-manager/master -- switch --flake ~/dotfiles/nix-conf +atuin import zsh + +atuin_user=$(rage -i ~/.ssh/agenix -d "${NIX_CONF}/hosts/home-manager/modules/home-secrets/secrets/age/atuin/user.age") +atuin_password=$(rage -i ~/.ssh/agenix -d "${NIX_CONF}/hosts/home-manager/modules/home-secrets/secrets/age/atuin/password.age") +atuin_key=$(rage -i ~/.ssh/agenix -d "${NIX_CONF}/hosts/home-manager/modules/home-secrets/secrets/age/atuin/key.age") + +atuin login -u "$atuin_user" -p "$atuin_password" -k "$atuin_key" |