From 21b523307715e836807f5bb679cb5a92f5f0bc48 Mon Sep 17 00:00:00 2001 From: ShatteredMINT Date: Fri, 14 Feb 2025 17:42:39 +0100 Subject: [PATCH] format out network shares --- configuration.nix | 15 --------------- flake.nix | 2 ++ network-shares.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 network-shares.nix diff --git a/configuration.nix b/configuration.nix index 32012b9..b8cec05 100644 --- a/configuration.nix +++ b/configuration.nix @@ -21,21 +21,6 @@ }; # leftover from the original config boot.loader.efi.canTouchEfiVariables = true; - - # mount network shares - fileSystems."/mnt/nas/private" = { - device = "dashboard.omv:/ShatteredMINT"; - fsType = "nfs"; - options = [ "x-systemd.automount" "noauto" ]; - - }; - fileSystems."/mnt/nas/shared" = { - device = "dashboard.omv:/default-nas"; - fsType = "nfs"; - options = [ "x-systemd.automount" "noauto" ]; - - }; - # Set your time zone. time.timeZone = "Europe/Berlin"; diff --git a/flake.nix b/flake.nix index 6072806..eb2aeb8 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,7 @@ ./configuration.nix ./nvidia.nix ./plasma.nix + ./network-shares.nix ./backup-target.nix @@ -43,6 +44,7 @@ ./plasma.nix ./users/shatteredmint.nix + ./network-shares.nix ]; }; }; diff --git a/network-shares.nix b/network-shares.nix new file mode 100644 index 0000000..111bd42 --- /dev/null +++ b/network-shares.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: + +{ + # mount network shares + fileSystems."/mnt/nas/private" = { + device = "dashboard.omv:/ShatteredMINT"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; + + }; + fileSystems."/mnt/nas/shared" = { + device = "dashboard.omv:/default-nas"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; + + }; +}