mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-01 19:13:09 +01:00
14 lines
289 B
Nix
14 lines
289 B
Nix
{ config, lib, ... }:
|
|
|
|
let inherit (import ../../options.nix) nfs nfsMountPoint nfsDevice; in
|
|
lib.mkIf (nfs == true) {
|
|
fileSystems."${nfsMountPoint}" = {
|
|
device = "${nfsDevice}";
|
|
fsType = "nfs";
|
|
};
|
|
services = {
|
|
rpcbind.enable = true;
|
|
nfs.server.enable = true;
|
|
};
|
|
}
|