From 2b69b347060d14b0f20bf30bd8433b9b54122a72 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 21 Jan 2024 15:55:16 +0000 Subject: [PATCH] Add NFS mount for library --- hosts/desktop.nix | 6 ++++++ hosts/library/default.nix | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/hosts/desktop.nix b/hosts/desktop.nix index a23a8f6..421d099 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -18,6 +18,12 @@ pulse.enable = true; }; + fileSystems."/mnt/library" = { + device = "library.mesh.vimium.net:/mnt/library"; + fsType = "nfs"; + options = [ "nfsvers=4.2" "soft" "nocto" "ro" "x-systemd.automount" "noauto" ]; + }; + system.autoUpgrade = { enable = true; flake = "git+ssh://git@git.vimium.com/jordan/nix-config.git"; diff --git a/hosts/library/default.nix b/hosts/library/default.nix index 966720c..c7a2cf2 100644 --- a/hosts/library/default.nix +++ b/hosts/library/default.nix @@ -43,6 +43,10 @@ with lib.my; }; }; + services.nfs.server = { + enable = true; + }; + services.prometheus = { enable = true; port = 9001;