summaryrefslogtreecommitdiff
path: root/Biz/Cloud.nix
blob: 2a30b48ace78f8ec4d453e6a4a7360bfe5180754 (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
{ bild ? import ./Bild.nix {} }:

# Cloud infrastructure, always online. Mostly for messaging-related stuff.

let
  #nixos-mailserver = let ver = "v2.3.0"; in builtins.fetchTarball {
  #  url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${ver}/nixos-mailserver-${ver}.tar.gz";
  #  sha256 = "0lpz08qviccvpfws2nm83n7m2r8add2wvfg9bljx9yxx8107r919";
  #};
in
bild.os {
  imports = [
    ./OsBase.nix
    ./Packages.nix
    ./Users.nix
    ./Cloud/Chat.nix
    ./Cloud/Git.nix
    ./Cloud/Grocy.nix
    ./Cloud/Hardware.nix
    ./Cloud/Mail.nix
    ./Cloud/Networking.nix
    ./Cloud/Web.nix
    ./Cloud/Znc.nix
    "${bild.sources.nixos-mailserver}"
  ];
  networking.hostName = "simatime";
  networking.domain = "simatime.com";
  # the datacenter for this VM is in SF
  time.timeZone = "America/Los_Angeles";
}