Clean up arguments to deploy

This commit is contained in:
Tim Schubert 2021-01-07 22:15:25 +01:00
parent 30549b5e4e
commit eb6e32284d
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA

4
deploy
View file

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