VEGAS/nfs: drop

This commit is contained in:
Max Headroom 2023-01-31 00:13:09 +01:00
parent 7fda7ca695
commit 4c62d19261
3 changed files with 0 additions and 27 deletions

View file

@ -1,12 +0,0 @@
{ lib, tools, ... }:
{
imports = [ ./exports.nix ];
services.nfs = {
server = {
enable = true;
};
idmapd.settings = {
General.Domain = lib.mkForce tools.meta.domain;
};
};
}

View file

@ -1,14 +0,0 @@
let
entry = { directory, network, security ? "krb5i", writable ? true, options ? [] }:
let
mode = if writable then "rw" else "ro";
optionsFinal = [ mode "sec=${security}" ] ++ options;
concat = builtins.concatStringsSep "," optionsFinal;
in "${directory} ${network}(${concat})";
exports = map entry [
{ directory = "/srv/storage/www/soda"; network = "10.10.2.0/24"; options = [ "no_root_squash" ]; }
];
in {
services.nfs.server.exports = builtins.concatStringsSep "\n" exports;
}

View file

@ -23,7 +23,6 @@
./services/gitlab
./services/jokes
./services/nextcloud
./services/nfs
./services/mail
./services/matrix
./services/minecraft