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

@ -11,7 +11,6 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
- [ ] Homepage (web) v2
- [ ] Compile the sveltejs project
- [ ] Different link on web/mobile (so it can open ios/android apps)
- [ ] Test services ? (ping)
- [ ] Manifest & favicon
- [ ] Nixvim
- [ ] Nerdfont pluggins to search and paste in the code

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
];