nixos-config/mastus/configuration.nix
2016-06-19 11:29:25 +02:00

62 lines
1.2 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
../basic-tools.nix
./backup.nix
./mail.nix
./www.nix
./gogs.nix
./letsencrypt.nix
./blog.nix
./radicale.nix
./ttrss.nix
./dns.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/vda";
networking.hostName = "mastus"; # Define your hostname.
networking.domain = "gebner.org";
networking.enableIPv6 = true;
# Select internationalisation properties.
# i18n = {
# consoleFont = "Lat2-Terminus16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
time.timeZone = "Europe/Amsterdam";
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
passwordAuthentication = false;
};
users.extraUsers.gebner = {
isNormalUser = true;
# shell = "${pkgs.zsh}/bin/zsh";
};
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "15.09";
networking.firewall = {
allowedTCPPorts = [
# http
80 443
# mail
25 587 993
];
};
}