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