This commit is contained in:
Felix Buehler 2021-12-13 17:54:32 +01:00
commit 52784a38f9
3 changed files with 18 additions and 7 deletions

3
.gitignore vendored
View file

@ -1,3 +1,2 @@
configuration.nix configuration.nix
vars-uuids.nix vars-*.nix
vars-backup.nix

14
extra/dyndns.nix Normal file
View 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;
};
}

View file

@ -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";
@ -30,10 +31,7 @@
}; };
system = { system = {
stateVersion = "21.05"; stateVersion = "21.11";
autoUpgrade = { autoUpgrade.enable = true;
enable = true;
channel = https://nixos.org/channels/nixos-21.05;
};
}; };
} }