We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import
hermetic = true
config
1 parent e379a5f commit d4128eaCopy full SHA for d4128ea
deploy_nixos/nixos-instantiate.sh
@@ -27,8 +27,16 @@ command=(nix-instantiate --show-trace --expr '
27
if flake
28
then importFromFlake { nixosConfig = configuration; }
29
else if hermetic
30
- then import configuration
31
- else import <nixpkgs/nixos> { inherit system configuration; };
+ then
+ (
32
+ if builtins.isString configuration
33
+ # case: nixos_config i.e. file path
34
+ then import configuration
35
+ # case: config i.e. the module expression itself
36
+ else configuration
37
+ )
38
+ else
39
+ import <nixpkgs/nixos> { inherit system configuration; };
40
in {
41
inherit (builtins) currentSystem;
42
0 commit comments