mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-25 02:14:41 +02:00
Merge branch 'master' of https://github.com/Stunkymonkey/nixos
This commit is contained in:
commit
52784a38f9
3 changed files with 18 additions and 7 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";
|
||||||
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue