citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

default.nix (498B)


      1 { config, lib, pkgs, ... }:
      2 let
      3   openTCP = dev: port: ''
      4     ip46tables -A nixos-fw -i ${dev} -p tcp --dport ${toString port} -j nixos-fw-accept
      5   '';
      6   ports = {
      7     test_http = 3000;
      8   };
      9 in
     10 {
     11   services.openssh.gatewayPorts = "yes";
     12 
     13   networking.enableIPv6 = false;
     14   networking.firewall.allowedTCPPorts = with ports; [ 22 443 80 test_http ];
     15 
     16   networking.domain = "damus.io";
     17   networking.search = [ "damus.io" ];
     18   networking.extraHosts = ''
     19     127.0.0.1 damus.io
     20     ::1 damus.io
     21   '';
     22 }