summaryrefslogtreecommitdiff
path: root/host/automatix.nix
blob: 647f9912feb6c93c9ad30a793a927484ee8a8595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ pkgs, ... }:

{
  imports = [
    ./hardware/automatix.nix
    ./software/code.kummerlaender.eu.nix
    ./software/pkgs.kummerlaender.eu.nix
    ./software/blog.kummerlaender.eu.nix
    ./software/tree.kummerlaender.eu.nix
    ./software/mx.kummerlaender.eu.nix
  ];

  boot.loader.grub = {
    enable  = true;
    version = 2;
    device  = "/dev/sda";
  };

  networking = {
    hostName = "automatix";

    firewall = {
      allowedTCPPorts = [ 22 80 443 ];
    };
  };

  services = {
    nginx = {
      enable = true;

      recommendedGzipSettings  = true;
      recommendedOptimisation  = true;
      recommendedProxySettings = true;
      recommendedTlsSettings   = true;
    };
  };
}