summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/hosts/T495/configuration.nix1
-rw-r--r--modules/root/nas.nix2
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/hosts/T495/configuration.nix b/modules/hosts/T495/configuration.nix
index a3bad32..526b7bb 100644
--- a/modules/hosts/T495/configuration.nix
+++ b/modules/hosts/T495/configuration.nix
@@ -25,6 +25,7 @@
# Enable network drives
nas.enable = true;
nas.office.enable = true;
+ nas.office.automount = false;
networking.hosts = {
"192.168.77.3" = [ "devel" ];
diff --git a/modules/root/nas.nix b/modules/root/nas.nix
index 525456e..0116ba3 100644
--- a/modules/root/nas.nix
+++ b/modules/root/nas.nix
@@ -3,7 +3,7 @@ let
mkNetworkFileSystem = device: automount: {
device = "${device}";
fsType = "nfs";
- options = [ "defaults" ] ++ lib.optionals automount [ "noauto" ];
+ options = [ "defaults" ] ++ lib.optionals (!automount) [ "noauto" ];
};
in {
options = {