summaryrefslogtreecommitdiff
path: root/abbenay/nfs.nix
blob: 7405ce18459bca1fa1bdc24236a4755e6cf9428e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, pkgs, ... }:

{
  services.nfs.server = {
    enable = true;
    # hostName = "abbenay";

    exports = ''
      /export 192.168.69.104(rw,sync,fsid=0,no_subtree_check)
      /export/shared 192.168.69.104(rw,sync,insecure,nohide,no_subtree_check)
    '';
  };

  fileSystems."/export/shared" = {
    device = "/home/stuebinm/shared";
    options = [ "bind" ];
  };

  networking.firewall.allowedTCPPorts = [ 2049 ];
}