Compare commits
3 Commits
bb77fc54d4
...
4210857297
Author | SHA1 | Date | |
---|---|---|---|
4210857297 | |||
3136ec6762 | |||
fc2a78b0db |
@@ -43,6 +43,8 @@
|
|||||||
rclone
|
rclone
|
||||||
beets
|
beets
|
||||||
flac
|
flac
|
||||||
|
screen
|
||||||
|
(callPackage ../marauder/ffcheck.nix { })
|
||||||
];
|
];
|
||||||
|
|
||||||
services.jellyfin = {
|
services.jellyfin = {
|
||||||
|
@@ -3,22 +3,16 @@
|
|||||||
systemd.services.update-dns = {
|
systemd.services.update-dns = {
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
description = "Update the leaf.ninja DNS records";
|
description = "Update the leaf.ninja DNS records";
|
||||||
path = with pkgs; [ curl jq ];
|
path = with pkgs; [ curl ];
|
||||||
script = ''
|
script = ''
|
||||||
public_ip=$(curl -s https://ifconfig.me/ip)
|
public_ip=$(curl -s https://ifconfig.me/ip)
|
||||||
endpoint="https://api.gandi.net/v5/livedns/domains/leaf.ninja/records"
|
endpoint="https://api.gandi.net/v5/livedns/domains/leaf.ninja/records"
|
||||||
curl -s \
|
curl \
|
||||||
-X PUT \
|
-X PUT \
|
||||||
-H "Authorization: Bearer ${secrets.gandi.token}" \
|
-H "Authorization: Bearer ${secrets.gandi.token}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"rrset_values\":[\"$public_ip\"]}" \
|
-d "{\"rrset_values\":[\"$public_ip\"]}" \
|
||||||
"$ENDPOINT/%2A/A" | jq
|
$endpoint/ostiary/A
|
||||||
curl -s \
|
|
||||||
-X PUT \
|
|
||||||
-H "Authorization: Bearer ${secrets.gandi.token}" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d "{\"rrset_values\":[\"$public_ip\"]}" \
|
|
||||||
"$ENDPOINT/%40/A" | jq
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user