mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 20:17:31 +01:00
22 lines
547 B
Nix
22 lines
547 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
fileSystems = {
|
|
"/export/riker-backup" = {
|
|
device = "/tank/backup/riker";
|
|
options = [ "bind" ];
|
|
};
|
|
};
|
|
|
|
# Enable nfs4 only
|
|
# services.nfs.server = {
|
|
# enable = true;
|
|
# exports = ''
|
|
# /export 192.168.10.67(rw,fsid=0,no_subtree_check)
|
|
# /export/riker-backup 192.168.10.67(rw,nohide,no_subtree_check,no_root_squash)
|
|
# '';
|
|
# };
|
|
|
|
networking.firewall.allowedTCPPorts = [ 111 2049 20048 ];
|
|
networking.firewall.allowedUDPPorts = [ 111 20048];
|
|
}
|