mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
20 lines
314 B
Nix
20 lines
314 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.system.boot.nfs;
|
|
in
|
|
{
|
|
options.my.system.boot.nfs = {
|
|
enable = lib.mkEnableOption "NFS boot support";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
boot.supportedFilesystems = [ "nfs" ];
|
|
fuse.userAllowOther = true;
|
|
services.rpcbind.enable = true;
|
|
};
|
|
}
|