mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
25 lines
529 B
Nix
25 lines
529 B
Nix
{
|
|
config,
|
|
lib,
|
|
xlib,
|
|
...
|
|
}:
|
|
{
|
|
systemd.tmpfiles.rules = [
|
|
"z /export 0755 nobody nogroup -"
|
|
];
|
|
services.nfs = {
|
|
server = {
|
|
enable = false;
|
|
exports = ''
|
|
/export 192.168.1.20(rw,fsid=0,no_subtree_check) 192.168.1.102(rw,fsid=0,no_subtree_check)
|
|
/export/root 192.168.1.20(rw,nohide,insecure,no_subtree_check) 192.168.1.102(rw,nohide,insecure,no_subtree_check)
|
|
'';
|
|
};
|
|
};
|
|
# fileSystems."/export/root" = {
|
|
# device = "/";
|
|
# options = [ "bind" ];
|
|
# };
|
|
}
|