nixos-config/mastus/configuration.nix

62 lines
1.2 KiB
Nix
Raw Permalink Normal View History

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-12-05 12:41:20 +00:00
./letsencrypt.nix
2016-04-24 14:45:15 +00:00
./blog.nix
2016-06-18 07:18:36 +00:00
./radicale.nix
2016-06-19 07:15:34 +00:00
./ttrss.nix
2016-06-19 09:29:25 +00:00
./dns.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-27 08:10:27 +00:00
25 587 993
2015-10-18 12:32:00 +00:00
];
};
2015-09-14 17:30:18 +00:00
}