Reorganize imports

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-12-21 23:32:29 +02:00
parent 0ae56e6e25
commit 98ce774210
189 changed files with 253 additions and 260 deletions

View File

@@ -0,0 +1,14 @@
{ lib, pkgs, ... }:
{
networking.networkmanager.dispatcherScripts = [
{
source = lib.meta.getExe (
pkgs.writeShellApplication {
name = "timezone-sync";
runtimeInputs = with pkgs; [ curl ];
text = builtins.readFile ./timezone.sh;
}
);
}
];
}

View File

@@ -0,0 +1,7 @@
case "$2" in
connectivity-change)
if timezone=$(curl --fail https://ipapi.co/timezone); then
timedatectl set-timezone "${timezone}"
fi
;;
esac