summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2017-01-26 23:38:06 +0100
committerPascal Bach <pascal.bach@nextrem.ch>2017-02-02 23:16:52 +0100
commitff3f3399aefa759707f5f24da3b6641f2147cb0e (patch)
tree09563862939d02d3da5bb68fba5a246d66b958df /nixos
parent19759cfeab0b749666dafdf52a0aad79123a2126 (diff)
downloadnixpkgs-ff3f3399aefa759707f5f24da3b6641f2147cb0e.tar
nixpkgs-ff3f3399aefa759707f5f24da3b6641f2147cb0e.tar.gz
nixpkgs-ff3f3399aefa759707f5f24da3b6641f2147cb0e.tar.bz2
nixpkgs-ff3f3399aefa759707f5f24da3b6641f2147cb0e.tar.lz
nixpkgs-ff3f3399aefa759707f5f24da3b6641f2147cb0e.tar.xz
nixpkgs-ff3f3399aefa759707f5f24da3b6641f2147cb0e.tar.zst
nixpkgs-ff3f3399aefa759707f5f24da3b6641f2147cb0e.zip
filesystems: add support to mount glusterfs
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/tasks/filesystems.nix2
-rw-r--r--nixos/modules/tasks/filesystems/glusterfs.nix11
2 files changed, 12 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix
index 49ba66ad50a..8bd35385739 100644
--- a/nixos/modules/tasks/filesystems.nix
+++ b/nixos/modules/tasks/filesystems.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!
diff --git a/nixos/modules/tasks/filesystems/glusterfs.nix b/nixos/modules/tasks/filesystems/glusterfs.nix
new file mode 100644
index 00000000000..e8c7fa8efba
--- /dev/null
+++ b/nixos/modules/tasks/filesystems/glusterfs.nix
@@ -0,0 +1,11 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+{
+  config = mkIf (any (fs: fs == "glusterfs") config.boot.supportedFilesystems) {
+
+    system.fsPackages = [ pkgs.glusterfs ];
+
+  };
+}