about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorjopejoe1 <johannes@joens.email>2024-01-09 23:49:29 +0100
committerjopejoe1 <johannes@joens.email>2024-01-10 00:24:48 +0100
commitdf5728a4f4f5a365be96075a698d2b7013ee725f (patch)
tree2c4951f17e1b26eca72ed23e17f1c1dc8f333ace /nixos/modules
parent67afe780d0081dc4fa11984c6395caee90eb8115 (diff)
nixos/filesystems: init sshfs
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/tasks/filesystems/sshfs.nix7
2 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 36f34e50d595d..33963115b23b9 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -1509,6 +1509,7 @@
   ./tasks/filesystems/nfs.nix
   ./tasks/filesystems/ntfs.nix
   ./tasks/filesystems/reiserfs.nix
+  ./tasks/filesystems/sshfs.nix
   ./tasks/filesystems/squashfs.nix
   ./tasks/filesystems/unionfs-fuse.nix
   ./tasks/filesystems/vboxsf.nix
diff --git a/nixos/modules/tasks/filesystems/sshfs.nix b/nixos/modules/tasks/filesystems/sshfs.nix
new file mode 100644
index 0000000000000..cd71dda16d8b4
--- /dev/null
+++ b/nixos/modules/tasks/filesystems/sshfs.nix
@@ -0,0 +1,7 @@
+{ config, lib, pkgs, ... }:
+
+{
+  config = lib.mkIf (lib.any (fs: fs == "sshfs" || fs == "fuse.sshfs") config.boot.supportedFilesystems) {
+    system.fsPackages = [ pkgs.sshfs ];
+  };
+}