From 657c8d9ea799f32077b14aefa3b1c9406d5d8aab Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Oct 2013 17:47:13 +0100 Subject: Hack to work around the lack of isPath --- nixos/modules/profiles/clone-config.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/profiles/clone-config.nix b/nixos/modules/profiles/clone-config.nix index d7190020e7e2..04ee76d8d3e9 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. -- cgit 1.4.1