Summary Files Commits Branches @commit @diff @stats
path: root / machines / marduk / configuration.nix
blob: d9dfc23fdcd2c549baa4ec6158e51b197568619c (plain) (blame)
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
# This is device is meant to be a home, LOCAL ONLY server!
# The configurations you will find are woefully insecure and hard-coded.
{ lib, ... }: {
  imports = [
    ./httpd.nix
    ./mail.nix
  ];

  options = {
    constants = lib.mkOption {
      type = lib.types.attrs;
    };
  };

  config = {
    constants = {
      # I've currently set this IP in my router configuration.
      # It would be better to write a proper static IP NixOS config, but its
      # fine like that.
      ip = "192.168.0.10";
      # This is actually a fantastic TLD. Very few sites use it, you may
      # consider it as an abbreviation of "internal" and is one of the
      # "original" gTLDs, introduced in 1988, so every device will always
      # work with it.
      tld = "int";
    };
  };
}