diff --git a/flake.nix b/flake.nix index 22856db..374f41a 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,10 @@ url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05"; inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system }; + sortseer = { + url = "git+https://git.caspervk.net/caspervk/sortseer.git"; + inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system + }; }; outputs = { diff --git a/hosts/alpha/default.nix b/hosts/alpha/default.nix index d014791..2976ff7 100644 --- a/hosts/alpha/default.nix +++ b/hosts/alpha/default.nix @@ -9,6 +9,7 @@ ./knot-dns.nix ./mumble.nix ./network.nix + ./sortseer.nix ]; networking.hostName = "alpha"; diff --git a/hosts/alpha/network.nix b/hosts/alpha/network.nix index 0c16ef8..d837d4a 100644 --- a/hosts/alpha/network.nix +++ b/hosts/alpha/network.nix @@ -91,9 +91,6 @@ }; networking = { - firewall.allowedTCPPorts = [ - 25 # @sortseer.dk - ]; firewall.allowedUDPPorts = [ 51820 # wg-sigma-public 51821 # wg-sigma-p2p diff --git a/hosts/alpha/sortseer.nix b/hosts/alpha/sortseer.nix new file mode 100644 index 0000000..fa05540 --- /dev/null +++ b/hosts/alpha/sortseer.nix @@ -0,0 +1,12 @@ +{sortseer, ...}: { + imports = [ + sortseer.nixosModules.default + ]; + + # https://git.caspervk.net/caspervk/sortseer + services.sortseer.enable = true; + + networking.firewall = { + allowedTCPPorts = [25]; + }; +}