filesystems: add support to mount glusterfs

wip/yesman
Pascal Bach 7 years ago
parent 19759cfeab
commit ff3f3399ae
  1. 2
      nixos/modules/tasks/filesystems.nix
  2. 11
      nixos/modules/tasks/filesystems/glusterfs.nix

@ -216,7 +216,7 @@ in
environment.etc.fstab.text =
let
fsToSkipCheck = [ "none" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" ];
fsToSkipCheck = [ "none" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" ];
skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck;
in ''
# This is a generated file. Do not edit!

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = mkIf (any (fs: fs == "glusterfs") config.boot.supportedFilesystems) {
system.fsPackages = [ pkgs.glusterfs ];
};
}
Loading…
Cancel
Save