Move custom packages

This commit is contained in:
Oliver Davies 2025-08-25 18:35:31 +01:00
parent 386c68813a
commit 23cc6c99a0
7 changed files with 87 additions and 66 deletions

21
flake-modules/publish.nix Normal file
View file

@ -0,0 +1,21 @@
{
perSystem =
{ pkgs, ... }:
{
packages.publish = pkgs.writeShellApplication {
name = "publish";
runtimeInputs = with pkgs; [
rsync
php
];
text = ''
vendor/bin/sculpin generate --env prod
rsync -uvrP static/ output_prod "$@"
rsync -uvrP output_prod/ nixedo.oliverdavies.uk:/var/www/vhosts/website-sculpin "$@"
'';
};
};
}