if cascade.source is not enabled, get cascade from gitlab

This commit is contained in:
James Andariese 2022-09-28 08:37:32 -05:00
parent 890df16225
commit 1eade740bd

View File

@ -47,7 +47,10 @@ config = with lib; {
fi 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" ])
];
}; };
} }