config/hosts/vm/configuration.nix

48 lines
704 B
Nix
Raw Normal View History

2023-07-17 16:35:45 +03:00
{
pkgs,
myData,
...
2023-10-01 23:14:05 +03:00
}: {
2023-07-17 16:35:45 +03:00
mj = {
stateVersion = "23.05";
timeZone = "UTC";
2023-07-20 15:02:38 +03:00
base.users.passwd = {
root.initialPassword = "live";
};
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];
};
};
nix = {
extraOptions = ''
experimental-features = nix-command flakes
trusted-users = vm
'';
};
}