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/dns01/default.nix

38 lines
671 B
Nix
Raw Normal View History

2024-03-19 22:53:14 +11:00
# 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
2024-03-25 23:37:21 +11:00
, pkgs
2024-03-19 22:53:14 +11:00
, ...
}: {
imports = [
2024-03-26 21:11:56 +11:00
2024-03-19 22:53:14 +11:00
];
2024-03-26 21:11:56 +11:00
2024-03-26 21:11:59 +11:00
mySystem.services = {
openssh.enable = true;
2024-03-26 21:11:59 +11:00
maddy.enable = true;
dnscrypt-proxy.enable = true;
cfDdns.enable = true;
bind.enable = true;
2024-03-26 21:11:56 +11:00
};
2024-03-19 22:53:14 +11:00
networking.hostName = "dns01"; # Define your hostname.
2024-03-25 20:12:54 +11:00
networking.useDHCP = lib.mkDefault true;
2024-03-19 22:53:14 +11:00
2024-03-25 20:12:54 +11:00
fileSystems."/" =
{
device = "/dev/disk/by-label/NIXOS_SD";
2024-03-25 20:12:54 +11:00
fsType = "ext4";
};
2024-03-19 22:53:14 +11:00
2024-03-25 20:12:54 +11:00
swapDevices = [ ];
2024-03-19 22:53:14 +11:00
}