From df5728a4f4f5a365be96075a698d2b7013ee725f Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 9 Jan 2024 23:49:29 +0100 Subject: nixos/filesystems: init sshfs --- nixos/modules/module-list.nix | 1 + nixos/modules/tasks/filesystems/sshfs.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 nixos/modules/tasks/filesystems/sshfs.nix (limited to 'nixos/modules') 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 ]; + }; +} -- cgit 1.4.1