2015-09-14 17:30:18 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
/etc/nixos/hardware-configuration.nix
|
|
|
|
../basic-tools.nix
|
2015-10-20 11:46:19 +00:00
|
|
|
./backup.nix
|
2015-10-18 12:25:54 +00:00
|
|
|
|
|
|
|
./mail.nix
|
2015-10-25 08:29:49 +00:00
|
|
|
./www.nix
|
2015-10-18 12:25:54 +00:00
|
|
|
./gogs.nix
|
2015-09-14 17:30:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.version = 2;
|
|
|
|
boot.loader.grub.device = "/dev/vda";
|
|
|
|
|
|
|
|
networking.hostName = "mastus"; # Define your hostname.
|
2015-10-18 20:17:53 +00:00
|
|
|
networking.domain = "gebner.org";
|
2015-10-18 12:25:54 +00:00
|
|
|
networking.enableIPv6 = true;
|
2015-09-14 17:30:18 +00:00
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
# i18n = {
|
|
|
|
# consoleFont = "Lat2-Terminus16";
|
|
|
|
# consoleKeyMap = "us";
|
|
|
|
# defaultLocale = "en_US.UTF-8";
|
|
|
|
# };
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
2015-10-25 13:21:03 +00:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
passwordAuthentication = false;
|
|
|
|
};
|
2015-09-14 17:30:18 +00:00
|
|
|
|
|
|
|
users.extraUsers.gebner = {
|
|
|
|
isNormalUser = true;
|
2015-10-18 12:30:53 +00:00
|
|
|
# shell = "${pkgs.zsh}/bin/zsh";
|
2015-09-14 17:30:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# The NixOS release to be compatible with for stateful data such as databases.
|
|
|
|
system.stateVersion = "15.09";
|
|
|
|
|
2015-10-18 12:32:00 +00:00
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [
|
|
|
|
# http
|
|
|
|
80 443
|
|
|
|
|
|
|
|
# mail
|
2015-10-25 12:26:03 +00:00
|
|
|
25 993
|
2015-10-18 12:32:00 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2015-09-14 17:30:18 +00:00
|
|
|
}
|