mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
20 lines
468 B
Nix
20 lines
468 B
Nix
{ ... }:
|
|
{
|
|
fileSystems."/export" = {
|
|
device = "/dev/sda2";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=export" "compress=zstd" "noatime" ];
|
|
};
|
|
|
|
services.nfs.server = {
|
|
enable = true;
|
|
exports = ''
|
|
/export 192.168.42.2(rw,fsid=0,no_subtree_check)
|
|
/export/movies 192.168.42.2(rw,fsid=0,no_subtree_check)
|
|
/export/shows 192.168.42.2(rw,fsid=0,no_subtree_check)
|
|
'';
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ 2049 ];
|
|
|
|
}
|