mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-26 00:23:10 +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;
|
|
};
|
|
}
|