diff --git a/common/cascade-source.nix b/common/cascade-source.nix index a13918e..164d4fc 100644 --- a/common/cascade-source.nix +++ b/common/cascade-source.nix @@ -47,7 +47,10 @@ config = with lib; { fi '') ]; - nix.nixPath = mkIf (config.cascade.source.set-nix-path && config.cascade.source.enable) [ "cascade=/usr/src/cascade" ]; + nix.nixPath = mkMerge [ + (mkIf (config.cascade.source.set-nix-path && config.cascade.source.enable) [ "cascade=/usr/src/cascade" ]) + (mkIf (!(config.cascade.source.set-nix-path && config.cascade.source.enable)) [ "cascade=https://gitlab.com/jamesandariese/cascade/-/archive/main/cascade-main.tar.gz" ]) + ]; }; }