This commit is contained in:
Hadi
2024-06-20 17:08:25 +02:00
parent 4653a9e86f
commit 3950c68160
3 changed files with 5 additions and 6 deletions

View File

@@ -10,8 +10,8 @@
systemd.services."bitcoin-git" = {
script = ''
[ ! -d "/home/heaven/btcprice" ] && git clone git@github.com:anotherhadi/btcprice /home/heaven/btcprice
cd "/home/heaven/btcprice"
[ ! -d "/home/hadi/btcprice" ] && git clone git@github.com:anotherhadi/btcprice /home/hadi/btcprice
cd "/home/hadi/btcprice"
price=$(curl eur.rate.sx/1BTC)
echo "# Bitcoin Price in EURO" >README.md
echo "" >>README.md
@@ -19,13 +19,13 @@
echo "" >>README.md
echo "Date: $(date)" >>README.md
git add .
git commit -m "Update price (heaven)"
git commit -m "Update price (hadi)"
git push -u origin main
exit 0
'';
serviceConfig = {
Type = "oneshot";
User = "heaven";
User = "hadi";
};
};
}

View File

@@ -9,12 +9,12 @@
../modules/server/nginx.nix
../modules/server/nextcloud.nix
../modules/server/vaultwarden.nix
../modules/server/www
../modules/server/adguard.nix
../modules/server/ntfy-sh.nix
../modules/server/tailscale.nix
../modules/server/kuma.nix
../modules/server/bitcoin-git.nix
# ../modules/server/unifi.nix # FIXME: unifi5 is deprecated
];