blob: af82b98dccf003b1ae9f804c0cb0a9aa697f18ec (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./services/uplcg.nix
./services/tracktrain.nix
./services/chat.nix
];
services.nginx.enable = true;
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.devices = [ "/dev/sda" ];
networking = {
hostName = "chaski";
enableIPv6 = true;
defaultGateway6 = {
address = "fe80::1";
interface = "ens3";
};
interfaces.ens3.ipv6.addresses = [ {
address = "2a01:4f9:c010:69ed::1";
prefixLength = 64;
} ];
useDHCP = false;
interfaces.ens10.useDHCP = true;
interfaces.ens3.useDHCP = true;
firewall.logRefusedConnections = false;
firewall.allowedTCPPorts = [ 80 443 ];
};
services.nix-serve = {
enable = true;
openFirewall = true;
};
system.stateVersion = "20.09"; # Did you read the comment?
}
|