This commit is contained in:
Lilith 2026-06-21 17:58:06 +02:00
parent bdcb1791ad
commit 10041af092
No known key found for this signature in database
GPG key ID: 272C807BD91F8446
4 changed files with 33 additions and 12 deletions

View file

@ -1,5 +1,4 @@
{ lib, config, ... }:
{
{ lib, config, ... }: {
options.server.nfs.enable = lib.mkEnableOption "Enable NFS shares";
config = lib.mkIf config.server.nfs.enable {
@ -20,11 +19,13 @@
fileSystems."/export/share" = {
device = "/data/share";
fsType = "nfs";
options = [ "bind" ];
};
fileSystems."/export/torrent" = {
device = "/data/torrent";
fsType = "nfs";
options = [ "bind" ];
};