19 lines
323 B
Nix
19 lines
323 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
# define nfs exports
|
|
let
|
|
nfsExports = ''
|
|
/holocron/vault *(rw,sync,no_subtree_check,no_root_squash)
|
|
/holocron/media *(ro,sync,no_subtree_check)
|
|
'';
|
|
in
|
|
{
|
|
# enable nfs with all exports
|
|
services.nfs = {
|
|
server = {
|
|
enable = true;
|
|
exports = nfsExports;
|
|
};
|
|
};
|
|
}
|