diff --git a/options/copySysConf.nix b/options/copySysConf.nix index c78cfe7..a6a7888 100644 --- a/options/copySysConf.nix +++ b/options/copySysConf.nix @@ -5,7 +5,7 @@ with lib; let cfg = config.system.copySysConf; cfgPath = ../.; - copySysConf = if (cfgPath == /etc/nixos) then pkgs.stdenv.mkDerivation rec { + copySysConf = if !(isStorePath cfgPath) then pkgs.stdenv.mkDerivation rec { name = "NixOS_Configuration-${version}"; version = commitIdFromGitRepo (cfgPath + "/.git");