summary refs log tree commit diff
path: root/nixos/modules/profiles/clone-config.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 17:47:13 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 22:45:57 +0100
commit657c8d9ea799f32077b14aefa3b1c9406d5d8aab (patch)
tree0c56bf75c4f1f9d1e39b0ab44131125cb6ab2dab /nixos/modules/profiles/clone-config.nix
parent1b2006270f9e1307f575a9a7bc82b6d4f3c37cec (diff)
downloadnixpkgs-657c8d9ea799f32077b14aefa3b1c9406d5d8aab.tar
nixpkgs-657c8d9ea799f32077b14aefa3b1c9406d5d8aab.tar.gz
nixpkgs-657c8d9ea799f32077b14aefa3b1c9406d5d8aab.tar.bz2
nixpkgs-657c8d9ea799f32077b14aefa3b1c9406d5d8aab.tar.lz
nixpkgs-657c8d9ea799f32077b14aefa3b1c9406d5d8aab.tar.xz
nixpkgs-657c8d9ea799f32077b14aefa3b1c9406d5d8aab.tar.zst
nixpkgs-657c8d9ea799f32077b14aefa3b1c9406d5d8aab.zip
Hack to work around the lack of isPath
Diffstat (limited to 'nixos/modules/profiles/clone-config.nix')
-rw-r--r--nixos/modules/profiles/clone-config.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/profiles/clone-config.nix b/nixos/modules/profiles/clone-config.nix
index d7190020e7e..04ee76d8d3e 100644
--- a/nixos/modules/profiles/clone-config.nix
+++ b/nixos/modules/profiles/clone-config.nix
@@ -16,7 +16,8 @@ let
   # cannot serialized attribute set given in the list of modules (that's why
   # you should use files).
   moduleFiles =
-    filter isPath modules;
+    # FIXME: use typeOf (Nix 1.6.1).
+    filter (x: !isAttrs x && !builtins.isFunction x) modules;
 
   # Partition module files because between NixOS and non-NixOS files.  NixOS
   # files may change if the repository is updated.