citadel

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

default.nix (542B)


      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     git = 9418;
      8     gemini = 1965;
      9     starbound = 21025;
     10   };
     11 in
     12 {
     13   services.openssh.gatewayPorts = "yes";
     14 
     15   networking.firewall.allowedTCPPorts = with ports; [ 22 443 80 70 12566 12788 5222 5269 3415 git gemini starbound ];
     16 
     17   networking.domain = "jb55.com";
     18   networking.search = [ "jb55.com" ];
     19   networking.extraHosts = ''
     20     127.0.0.1 jb55.com
     21     ::1 jb55.com
     22   '';
     23 }