zaneyos/config/system/nfs.nix
2024-02-06 00:47:13 -06:00

14 lines
270 B
Nix

{ config, lib, ... }:
let inherit (import ../../options.nix) nfs; in
lib.mkIf ("${nfs}" == "on") {
fileSystems."${nfsMountPoint}" = {
device = "${nfsDevice}";
fsType = "nfs";
};
services = {
rpcbind.enable = true;
nfs.server.enable = true;
};
}