config/hosts/vm/configuration.nix

52 lines
765 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-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];
logRefusedConnections = false;
};
};
nix = {
extraOptions = ''
experimental-features = nix-command flakes
trusted-users = vm
'';
};
}