Move Nix files back to the root of the project

This commit is contained in:
Oliver Davies 2025-03-29 23:19:06 +00:00
parent 52044d9995
commit 087153a16d
223 changed files with 12 additions and 12 deletions

13
pkgs/backup-websites.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, pkgs, ... }:
pkgs.writeShellApplication {
name = "backup-websites";
text = ''
backup_path="''${HOME}/server-backup"
mkdir -p "''${backup_path}"
${lib.getExe pkgs.rsync} -avzP ssh.oliverdavies.uk:/var/www/vhosts/ "''${backup_path}" --delete-after
'';
}