mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
31
nixosConfigurations/gerg-desktop/services/ddns.nix
Normal file
31
nixosConfigurations/gerg-desktop/services/ddns.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
_dir,
|
||||
}:
|
||||
{
|
||||
sops.secrets.cloudflare = { };
|
||||
|
||||
systemd.services.ddns = {
|
||||
reloadIfChanged = false;
|
||||
restartIfChanged = false;
|
||||
stopIfChanged = false;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
startAt = "hourly";
|
||||
|
||||
serviceConfig = {
|
||||
EnvironmentFile = config.sops.secrets.cloudflare.path;
|
||||
DynamicUser = true;
|
||||
};
|
||||
|
||||
path = [
|
||||
pkgs.netcat
|
||||
pkgs.jq
|
||||
pkgs.curl
|
||||
];
|
||||
|
||||
script = builtins.readFile "${_dir}/ddns_script.sh";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue