This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/hosts/dns02/default.nix
Truxnell 9786bc9cd6
feat: add split-dns (#59)
* chore: tweak favourites

* chore: hacking

* feat: add nix-serve

* hax

* re-encrypt

* haxing bind

* hacing sonarr/traef

* hack

* hack

* feat: add bind for local dns (manual)

* fix

* hacked up dns

---------

Co-authored-by: Truxnell <9149206+truxnell@users.noreply.github.com>
2024-04-06 06:24:47 +00:00

35 lines
645 B
Nix

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config
, lib
, pkgs
, ...
}: {
imports = [
];
mySystem.services = {
openssh.enable = true;
dnscrypt-proxy.enable = true;
cfDdns.enable = true;
bind.enable = true;
};
networking.hostName = "dns02"; # Define your hostname.
networking.useDHCP = lib.mkDefault true;
fileSystems."/" =
{
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
swapDevices = [ ];
}