1
0
Fork 0

Checking whether cfg path is (not) a store path seems like a better approach.

This commit is contained in:
Kevin Baensch 2019-08-21 19:55:49 +02:00
parent 61f88e73ef
commit 49940fb845
1 changed files with 1 additions and 1 deletions

View File

@ -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");