~sumner/nixos-configuration

nixos-configuration/host-configurations/tatooine.nix -rw-r--r-- 810 bytes
17aa893fSumner Evans matrix-synapse: 1.50.0rc2 -> 1.50.1 a day ago
                                                                                
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
{
  # Set the hostname
  networking.hostName = "tatooine";
  hardware.ramSize = 8;

  networking.interfaces.eth0.useDHCP = true;

  # Enable a lot of swap since we have enough disk. This way, if Airsonic eats
  # memory, it won't crash the box.
  swapDevices = [
    { device = "/var/swapfile"; size = 4096; }
  ];

  fileSystems = {
    "/" = { device = "/dev/disk/by-uuid/b477c98a-376a-4dd8-a46c-03e3187188d8"; fsType = "ext4"; };
  };

  # Enable the OpenSSH daemon.
  services.openssh.enable = true;

  # Enable Docker.
  virtualisation.docker.enable = true;

  # Allow the Syncthing GUI through
  networking.firewall.allowedTCPPorts = [ 8384 2022 ];
  networking.firewall.allowedUDPPorts = [ 8384 2022 ];

  # Enable mosh and et
  programs.mosh.enable = true;
  services.eternal-terminal.enable = true;
}