Only overwrite container-configuration when --config is specified.
Fixes #2834.
This commit is contained in:
parent
d5afbf8235
commit
f6d03359b3
@ -31,7 +31,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $ensureUniqueName = 0;
|
my $ensureUniqueName = 0;
|
||||||
my $extraConfig = "";
|
my $extraConfig;
|
||||||
|
|
||||||
GetOptions(
|
GetOptions(
|
||||||
"help" => sub { showHelp() },
|
"help" => sub { showHelp() },
|
||||||
@ -190,7 +190,7 @@ elsif ($action eq "update") {
|
|||||||
|
|
||||||
# FIXME: may want to be more careful about clobbering the existing
|
# FIXME: may want to be more careful about clobbering the existing
|
||||||
# configuration.nix.
|
# configuration.nix.
|
||||||
writeNixOSConfig $nixosConfigFile if defined $extraConfig;
|
writeNixOSConfig $nixosConfigFile if (defined $extraConfig && $extraConfig ne "");
|
||||||
|
|
||||||
system("nix-env", "-p", "$profileDir/system",
|
system("nix-env", "-p", "$profileDir/system",
|
||||||
"-I", "nixos-config=$nixosConfigFile", "-f", "<nixpkgs/nixos>",
|
"-I", "nixos-config=$nixosConfigFile", "-f", "<nixpkgs/nixos>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user