working website deploy

This commit is contained in:
Anish L 2022-06-22 23:45:20 +10:00
parent 9a13dde021
commit 85094b1dd4

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, inputs, ... }:
{ {
systemd.services.website-deploy = { systemd.services.website-deploy = {
@ -6,10 +6,12 @@
path = [ path = [
pkgs.git pkgs.git
pkgs.coreutils pkgs.coreutils
pkgs.nixUnstable
pkgs.openssh
inputs.deploy.packages.${pkgs.system}.deploy-rs
]; ];
script = '' script = ''
cd /etc/nixos/ cd /etc/nixos/
nix develop
nix flake lock --update-input poonam nix flake lock --update-input poonam
deploy .#cube --hostname lakhwara.com deploy .#cube --hostname lakhwara.com
exit 0 exit 0