nixos-servers/hosts/ns3/configuration.nix

57 lines
1.3 KiB
Nix
Raw Normal View History

2024-03-07 22:14:44 +00:00
{ config, lib, pkgs, ... }:
{
imports =
[
2024-03-08 19:10:50 +00:00
../template/hardware-configuration.nix
2024-03-07 22:14:44 +00:00
2024-03-08 19:10:50 +00:00
../../system
../../services/ns/master-authorative.nix
2024-03-11 17:23:01 +00:00
../../services/ns/resolver.nix
2024-03-07 22:14:44 +00:00
];
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
2024-03-08 19:10:50 +00:00
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
2024-03-07 22:14:44 +00:00
2024-03-08 19:14:40 +00:00
networking.hostName = "ns3";
2024-03-08 19:10:50 +00:00
networking.domain = "home.2rjus.net";
2024-03-07 22:14:44 +00:00
networking.useNetworkd = true;
2024-03-08 19:10:50 +00:00
networking.useDHCP = false;
2024-03-11 17:23:01 +00:00
services.resolved.enable = false;
2024-03-08 19:10:50 +00:00
networking.nameservers = [
"10.69.13.5"
"10.69.13.6"
];
2024-03-07 22:14:44 +00:00
systemd.network.enable = true;
systemd.network.networks."ens18" = {
matchConfig.Name = "ens18";
address = [
"10.69.13.7/24"
];
routes = [
2024-12-01 01:00:57 +00:00
{ Gateway = "10.69.13.1"; }
2024-03-07 22:14:44 +00:00
];
linkConfig.RequiredForOnline = "routable";
};
time.timeZone = "Europe/Oslo";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
vim
wget
git
];
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
system.stateVersion = "23.11"; # Did you read the comment?
}