nixos-config/mastus/configuration.nix

55 lines
1.0 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
../basic-tools.nix
./backup.nix
./mail.nix
./gogs.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;
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";
services.nginx.enable = true;
networking.firewall = {
allowedTCPPorts = [
# http
80 443
# mail
25 143
];
};
}