Files
dotfiles/modules/system/boot/nfs.nix
T
2026-05-31 14:07:26 +09:00

20 lines
323 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" ];
programs.fuse.userAllowOther = true;
services.rpcbind.enable = true;
};
}