Checking whether cfg path is (not) a store path seems like a better approach.
This commit is contained in:
parent
61f88e73ef
commit
49940fb845
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue