From 1201f0fc5338ad6bf5d84f0998dd1d1c78ce733d Mon Sep 17 00:00:00 2001 From: ahtlon Date: Sat, 26 Oct 2024 19:08:14 +0200 Subject: [PATCH] erstelle exports ordner --- .gitignore | 1 + machines/lucia/configuration.nix | 1 + machines/lucia/file_server.nix | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 machines/lucia/file_server.nix diff --git a/.gitignore b/.gitignore index 8e0c3c5..6ca8efa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.log result *.qcow2 +.direnv/ diff --git a/machines/lucia/configuration.nix b/machines/lucia/configuration.nix index f0164bd..f470b07 100644 --- a/machines/lucia/configuration.nix +++ b/machines/lucia/configuration.nix @@ -7,6 +7,7 @@ in imports = [ # Include the results of the hardware scan. ../modules/malobeo_user.nix + ./file_server.nix ]; sops.defaultSopsFile = ./secrets.yaml; diff --git a/machines/lucia/file_server.nix b/machines/lucia/file_server.nix new file mode 100644 index 0000000..d2a0efa --- /dev/null +++ b/machines/lucia/file_server.nix @@ -0,0 +1,20 @@ +{config, pkgs, ... }: +{ + #automount mit udisks2 + #siehe udevadm monitor + #bash-script? + #user-oder root mount + #systemd-automount villeicht + systemd.tmpfiles.rules = [ "d /exports 0755 malobeo malobeo -" ]; + + services.nfs.server = { + enable = true; + exports = '' + + ''; + }; + networking.firewall = { + allowedTCPPorts = []; + allowedUDPPorts = []; + }; +} \ No newline at end of file