diff options
Diffstat (limited to 'nixpkgs/nixos/modules/tasks/filesystems/sshfs.nix')
-rw-r--r-- | nixpkgs/nixos/modules/tasks/filesystems/sshfs.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixpkgs/nixos/modules/tasks/filesystems/sshfs.nix b/nixpkgs/nixos/modules/tasks/filesystems/sshfs.nix index cd71dda16d8b..63ff7f2b6b39 100644 --- a/nixpkgs/nixos/modules/tasks/filesystems/sshfs.nix +++ b/nixpkgs/nixos/modules/tasks/filesystems/sshfs.nix @@ -1,7 +1,11 @@ { config, lib, pkgs, ... }: { - config = lib.mkIf (lib.any (fs: fs == "sshfs" || fs == "fuse.sshfs") config.boot.supportedFilesystems) { - system.fsPackages = [ pkgs.sshfs ]; - }; + config = lib.mkIf + (config.boot.supportedFilesystems.sshfs + or config.boot.supportedFilesystems."fuse.sshfs" + or false) + { + system.fsPackages = [ pkgs.sshfs ]; + }; } |