mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
./systemd.nix
|
./systemd.nix
|
||||||
./transmission.nix
|
./transmission.nix
|
||||||
./uptime-kuma.nix
|
./uptime-kuma.nix
|
||||||
|
./nfs.nix
|
||||||
# ./mealie.nix
|
# ./mealie.nix
|
||||||
# ./memos.nix
|
# ./memos.nix
|
||||||
# ./node-red.nix
|
# ./node-red.nix
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
xlib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"z /export 0755 nobody nogroup -"
|
||||||
|
];
|
||||||
|
services.nfs = {
|
||||||
|
server = {
|
||||||
|
enable = true;
|
||||||
|
exports = ''
|
||||||
|
/export 192.168.1.20(rw,fsid=0,no_subtree_check)
|
||||||
|
/export/root 192.168.1.20(rw,nohide,insecure,no_subtree_check)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
fileSystems."/export/root" = {
|
||||||
|
device = "/";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user