nixos-config/mastus/configuration.nix

62 lines
1.2 KiB
Nix
Raw Normal View History

2015-09-14 19:30:18 +02:00
{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
../basic-tools.nix
2015-10-20 13:46:19 +02:00
./backup.nix
2015-10-18 14:25:54 +02:00
./mail.nix
2015-10-25 09:29:49 +01:00
./www.nix
2015-10-18 14:25:54 +02:00
./gogs.nix
2015-12-05 13:41:20 +01:00
./letsencrypt.nix
2016-04-24 16:45:15 +02:00
./blog.nix
2016-06-18 09:18:36 +02:00
./radicale.nix
2016-06-19 09:15:34 +02:00
./ttrss.nix
2016-06-19 11:29:25 +02:00
./dns.nix
2015-09-14 19:30:18 +02: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 22:17:53 +02:00
networking.domain = "gebner.org";
2015-10-18 14:25:54 +02:00
networking.enableIPv6 = true;
2015-09-14 19:30:18 +02: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 14:21:03 +01:00
services.openssh = {
enable = true;
passwordAuthentication = false;
};
2015-09-14 19:30:18 +02:00
users.extraUsers.gebner = {
isNormalUser = true;
2015-10-18 14:30:53 +02:00
# shell = "${pkgs.zsh}/bin/zsh";
2015-09-14 19:30:18 +02:00
};
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "15.09";
2015-10-18 14:32:00 +02:00
networking.firewall = {
allowedTCPPorts = [
# http
80 443
# mail
2015-10-27 09:10:27 +01:00
25 587 993
2015-10-18 14:32:00 +02:00
];
};
2015-09-14 19:30:18 +02:00
}