]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/networking.nix
firefox: remove profile tor
[julm/julm-nix.git] / nixos / profiles / networking.nix
1 { config, pkgs, lib, hostName, ... }:
2 let
3 wg-intra-peers = import wireguard/wg-intra/peers.nix;
4 in
5 {
6 networking = {
7 hostName = hostName;
8 domain = lib.mkDefault "localdomain";
9 search = [ "sourcephile.fr" ];
10 firewall = {
11 enable = lib.mkDefault true;
12 allowPing = lib.mkDefault true;
13 };
14 };
15
16 programs.mtr.enable = true;
17
18 services.avahi = {
19 enable = lib.mkDefault true;
20 nssmdns = lib.mkDefault true;
21 openFirewall = lib.mkDefault false;
22 publish.enable = lib.mkDefault false;
23 };
24
25 services.openssh = {
26 forwardX11 = lib.mkDefault true;
27 openFirewall = true;
28 listenAddresses = [
29 { addr = wg-intra-peers.${hostName}.ipv4; port = 22; }
30 ];
31 };
32 }