From 4c62d192616da78df7076f55b9db52c7b5eaac83 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 31 Jan 2023 00:13:09 +0100 Subject: [PATCH] VEGAS/nfs: drop --- hosts/VEGAS/services/nfs/default.nix | 12 ------------ hosts/VEGAS/services/nfs/exports.nix | 14 -------------- hosts/VEGAS/system.nix | 1 - 3 files changed, 27 deletions(-) delete mode 100644 hosts/VEGAS/services/nfs/default.nix delete mode 100644 hosts/VEGAS/services/nfs/exports.nix diff --git a/hosts/VEGAS/services/nfs/default.nix b/hosts/VEGAS/services/nfs/default.nix deleted file mode 100644 index 73e86a7..0000000 --- a/hosts/VEGAS/services/nfs/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ lib, tools, ... }: -{ - imports = [ ./exports.nix ]; - services.nfs = { - server = { - enable = true; - }; - idmapd.settings = { - General.Domain = lib.mkForce tools.meta.domain; - }; - }; -} diff --git a/hosts/VEGAS/services/nfs/exports.nix b/hosts/VEGAS/services/nfs/exports.nix deleted file mode 100644 index e66a4f9..0000000 --- a/hosts/VEGAS/services/nfs/exports.nix +++ /dev/null @@ -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; -} diff --git a/hosts/VEGAS/system.nix b/hosts/VEGAS/system.nix index 92ebbed..cec6aa5 100644 --- a/hosts/VEGAS/system.nix +++ b/hosts/VEGAS/system.nix @@ -23,7 +23,6 @@ ./services/gitlab ./services/jokes ./services/nextcloud - ./services/nfs ./services/mail ./services/matrix ./services/minecraft