Update deploy script

This commit is contained in:
Tim Schubert 2020-12-31 17:47:13 +01:00
parent 8f75a87b86
commit 6a547c729d
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13

2
deploy
View file

@ -21,7 +21,7 @@ rev="$(git rev-parse HEAD)"
url="https://github.com/dadada/nix-config/archive/${rev}.tar.gz"
sha256=$(hash "$rev")
cat <<EOF | ssh "${host}".dadada.li 'sudo bash -c "cat - > /etc/nixos/deploy.nix"'
cat <<EOF | ssh "${host}".dadada.li 'sudo nix-shell -p tmux --run "cat - > /etc/nixos/deploy.nix && tmux new -d \"nixos-rebuild switch |& tee /var/log/dadada-deploy.log\""'
{ config, pkgs, lib, ... }:
let
dadada = import (builtins.fetchTarball {