Update deploy script
This commit is contained in:
parent
8f75a87b86
commit
6a547c729d
1 changed files with 1 additions and 1 deletions
2
deploy
2
deploy
|
@ -21,7 +21,7 @@ rev="$(git rev-parse HEAD)"
|
||||||
url="https://github.com/dadada/nix-config/archive/${rev}.tar.gz"
|
url="https://github.com/dadada/nix-config/archive/${rev}.tar.gz"
|
||||||
sha256=$(hash "$rev")
|
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, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
dadada = import (builtins.fetchTarball {
|
dadada = import (builtins.fetchTarball {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue