mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
extra/dyndns: init
This commit is contained in:
parent
6699866b20
commit
133b8a71eb
3 changed files with 16 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
||||||
configuration.nix
|
configuration.nix
|
||||||
vars-uuids.nix
|
vars-*.nix
|
||||||
vars-backup.nix
|
|
||||||
|
|
14
extra/dyndns.nix
Normal file
14
extra/dyndns.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = import ../vars-dyndns.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.ddclient = {
|
||||||
|
enable = true;
|
||||||
|
server = cfg.dyndns.server;
|
||||||
|
username = cfg.dyndns.username;
|
||||||
|
passwordFile = "/root/.dyndns_password";
|
||||||
|
domains = cfg.dyndns.domains;
|
||||||
|
ipv6 = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -13,6 +13,7 @@
|
||||||
./extra/3d-printer.nix
|
./extra/3d-printer.nix
|
||||||
./extra/ssh.nix
|
./extra/ssh.nix
|
||||||
./extra/avahi.nix
|
./extra/avahi.nix
|
||||||
|
./extra/dyndns.nix
|
||||||
./hardware/raspberrypi4.nix
|
./hardware/raspberrypi4.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "serverle";
|
networking.hostName = "serverle";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue