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