~sumner/nixos-configuration

65ed87ca47a84bdb3ee7c58a593f8557311263c1 — Sumner Evans a month ago 17ca44b
bespin: move postgres back to main drive
3 files changed, 21 insertions(+), 2 deletions(-)

M host-configurations/bespin.nix
M host-configurations/nevarro.nix
M modules/hardware/default.nix
M host-configurations/bespin.nix => host-configurations/bespin.nix +4 -1
@@ 19,6 19,10 @@
    }
  ];

  fileSystems = {
    "/mnt/syncthing-data" = { device = "/dev/disk/by-id/scsi-0Linode_Volume_syncthing-data"; fsType = "ext4"; };
  };

  # Websites
  services.nginx.websites = [
    { hostname = "the-evans.family"; }


@@ 105,6 109,5 @@

  # PosgreSQL
  services.postgresql.enable = true;
  services.postgresql.dataDir = "/mnt/postgresql-data/postgresql/11.1";
  services.postgresqlBackup.enable = true;
}

M host-configurations/nevarro.nix => host-configurations/nevarro.nix +4 -0
@@ 16,6 16,10 @@
    }
  ];

  fileSystems = {
    "/mnt/nevarro-postgresql-data" = { device = "/dev/disk/by-id/scsi-0Linode_Volume_nevarro-postgresql-data"; fsType = "ext4"; };
  };

  # Websites
  services.nginx.websites = [
    { hostname = "nevarro.space"; }

M modules/hardware/default.nix => modules/hardware/default.nix +13 -1
@@ 24,7 24,7 @@ in
    {
      assertions = [
        {
          assertion = cfg.isPC -> !cfg.isServer;
          assertion = cfg.isPC -> !cfg.isServer && cfg.isServer -> !cfg.isPC;
          message = "isPC and isServer are mutually exclusive";
        }
      ];


@@ 77,6 77,18 @@ in

        # IPv6 is just bad and doesn't work.
        networking.enableIPv6 = false;

        fileSystems = {
          "/" = { device = "/dev/sda"; fsType = "ext4"; };
        };

        # Enable LISH
        boot.kernelParams = [ "console=ttyS0,19200n8" ];
        boot.loader.grub.extraConfig = ''
          serial --speed=19200 --unit=0 --word=8 --party=no --stop=1;
          terminal_input serial;
          terminal_output serial;
        '';
      }
    )
  ];