config/hosts/vm/configuration.nix

50 lines
739 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";
};
users.users.vm.isSystemUser = true;
users.users.vm.initialPassword = "test";
environment = {
systemPackages = with pkgs; [
tmux
htop
];
};
services = {
nsd = {
enable = true;
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
'';
};
}