filesystems: add support to mount glusterfs
commitff3f3399aefa759707f5f24da3b6641f2147cb0e
authorPascal Bach <pascal.bach@nextrem.ch>
dateThu 26 Jan 2017, 23:38 (10 years ago)
parent19759cf
nixos/modules/tasks/filesystems.nix+1−1
@@ -216,7 +216,7 @@ in
216216
217217 environment.etc.fstab.text =
218218 let
219− fsToSkipCheck = [ "none" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" ];
219+ fsToSkipCheck = [ "none" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" ];
220220 skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck;
221221 in ''
222222 # This is a generated file. Do not edit!
nixos/modules/tasks/filesystems/glusterfs.nixnew file+11
@@ -0,0 +1,11 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+{
6+ config = mkIf (any (fs: fs == "glusterfs") config.boot.supportedFilesystems) {
7+
8+ system.fsPackages = [ pkgs.glusterfs ];
9+
10+ };
11+}