Comments (8)
Just to add to what @jhillyerd said, if anyone wants a NixOS overlay for this, I've forked the repo and merged in #7 and #13 from here since @colemickens seems to be MIA. You can use the following overlay in your nix config (but haven't tested with API tokens, just the annoying global zone key still):
{ config, pkgs, lib, ... }:
{
nixpkgs.overlays = [ (
self: super:
{
cfdyndns = super.cfdyndns.overrideAttrs (old: rec {
src = super.fetchFromGitHub {
owner = "sysr-q";
repo = "cfdyndns";
rev = "4e703506df0298423a79be3e0efec7ecf6ae8680";
sha256 = "0plijgr5y58ir9mjvxgm6jszz90pd1g0qjf21z0v5xrzg6bs2sy1";
};
cargoDeps = old.cargoDeps.overrideAttrs (lib.const {
name = "cfdyndns-0.0.3-vendor.tar.gz";
inherit src;
outputHash = "OLxvob50FXumoxVfj97lOwSDaXncWGZXTf0wltnReQo=";
});
});
}
) ];
services.cfdyndns = {
enable = true;
# ... etc
};
}
from cfdyndns.
It looks like support is there in HEAD, but it has not been released?
from cfdyndns.
@colemickens I was able to build dfd6200 as a NixOS overlay without any updates/patches, so you should be OK to tag a new release even if you don't have time to update deps.
Edit: meant to say I tested it with my API Token and it's working.
from cfdyndns.
Hey @sysr-q,
I'm confused, I was able to just cargo update
and I am infact using a regular User API token successfully (See my latest commit+tag).
If you are interested in maintaining this, or maybe you and @nrdxp, I'd be happy to redirect folks to your fork and we can update the package in nixpkgs to point at your fork....
from cfdyndns.
Interesting that you pinged me, I just created a branch where I started some cleanups and updates 😅
Once I implement a few more of the features I'd like, I'd be happy to take over maintainership, but it'll probably be a bit. The build failures on latest Rust and runtime issues are fixed already though.
On a somewhat orthogonal point, however, the NixOS module should probably also support API tokens as they are simpler and don't require exposing an email as well.
from cfdyndns.
I was wondering if the nixos module implementation was indeed the crux, since the simply Cargo-updated rust code seems to work fine with the User API token I tried. It certainly seems like it would even be wise to just force their usage and drop the email variable altogether.
But, I don't really need to have any input or opinions if you're going to run with it. 😉 Just in case they're filtered, but I did reply on the nixpkgs thread too and have a draft PR, but again, happy to let you lead on how to handle all of that.
from cfdyndns.
This should fix the module:
NixOS/nixpkgs#253728
from cfdyndns.
I'm closing this in favor of API tokens, if you have some compelling reason why we should still do this, we can reopen later
from cfdyndns.
Related Issues (13)
- Should support a flag to set ip based off of NIC
- Wrong Cargo.lock in v0.0.2 HOT 6
- cfdyndns enable proxy when changing IP
- allow setting AAAA records (ivp6 support) HOT 1
- SSL error HOT 2
- transfer ownership to nrdxp HOT 4
- Nixos, SOPS, and apitokenfile = Invalid format for Authorization header
- NixOS failed to parse header value
- cfdyndns fails when a `CAA` record (or any other unknown RR type) exists in the zone HOT 4
- Error: error sending request for url (https://api.cloudflare.com/client/v4/zones): error trying to connect: dns error: failed to lookup address information: Name or service not known
- bug: missing field `multiple_railguns_allowed` HOT 6
- stuck forever HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfdyndns.