forked from mirrors/nixpkgs
Merge pull request #279923 from jopejoe1/sshfs
nixos/filesystems: set `system.fsPackages` for sshfs
This commit is contained in:
commit
65f1d64303
|
@ -38,8 +38,6 @@ The file system can be configured in NixOS via the usual [fileSystems](#opt-file
|
||||||
Here's a typical setup:
|
Here's a typical setup:
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
system.fsPackages = [ pkgs.sshfs ];
|
|
||||||
|
|
||||||
fileSystems."/mnt/my-dir" = {
|
fileSystems."/mnt/my-dir" = {
|
||||||
device = "my-user@example.com:/my-dir/";
|
device = "my-user@example.com:/my-dir/";
|
||||||
fsType = "sshfs";
|
fsType = "sshfs";
|
||||||
|
|
|
@ -1519,6 +1519,7 @@
|
||||||
./tasks/filesystems/nfs.nix
|
./tasks/filesystems/nfs.nix
|
||||||
./tasks/filesystems/ntfs.nix
|
./tasks/filesystems/ntfs.nix
|
||||||
./tasks/filesystems/reiserfs.nix
|
./tasks/filesystems/reiserfs.nix
|
||||||
|
./tasks/filesystems/sshfs.nix
|
||||||
./tasks/filesystems/squashfs.nix
|
./tasks/filesystems/squashfs.nix
|
||||||
./tasks/filesystems/unionfs-fuse.nix
|
./tasks/filesystems/unionfs-fuse.nix
|
||||||
./tasks/filesystems/vboxsf.nix
|
./tasks/filesystems/vboxsf.nix
|
||||||
|
|
7
nixos/modules/tasks/filesystems/sshfs.nix
Normal file
7
nixos/modules/tasks/filesystems/sshfs.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue