config/hosts/vm/configuration.nix

49 lines
720 B
Nix
Raw Normal View History

2023-07-17 16:35:45 +03:00
{
config,
pkgs,
lib,
myData,
...
}: let
in {
mj = {
stateVersion = "23.05";
timeZone = "UTC";
2023-04-14 14:12:45 +03:00
stubPasswords = true;
2023-07-17 16:35:45 +03:00
};
environment = {
systemPackages = with pkgs; [
tmux
htop
];
};
services = {
nsd = {
enable = true;
2023-07-18 12:31:48 +03:00
interfaces = ["0.0.0.0" "::"];
2023-07-17 16:35:45 +03:00
zones = {
"jakstys.lt.".data = myData.jakstysLTZone;
};
};
};
networking = {
hostName = "vm";
domain = "jakstys.lt";
firewall = {
allowedTCPPorts = [53];
allowedUDPPorts = [53];
logRefusedConnections = false;
};
};
nix = {
extraOptions = ''
experimental-features = nix-command flakes
trusted-users = vm
'';
};
}