File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
nixos/modules/virtualisation Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 99 configurationDirectory = "/etc/${ configurationDirectoryName } " ;
1010 stateDirectory = "/var/lib/${ configurationPrefix } containers" ;
1111
12+ nixos-container = pkgs . nixos-container . override {
13+ inherit stateDirectory configurationDirectory ;
14+ } ;
15+
1216 # The container's init script, a small wrapper around the regular
1317 # NixOS stage-2 init script.
1418 containerInit = ( cfg :
250254 ExecReload = pkgs . writeScript "reload-container"
251255 ''
252256 #! ${ pkgs . runtimeShell } -e
253- ${ pkgs . nixos-container } /bin/nixos-container run "$INSTANCE" -- \
257+ ${ nixos-container } /bin/nixos-container run "$INSTANCE" -- \
254258 bash --login -c "'' ${SYSTEM_PATH:-/nix/var/nix/profiles/system}/bin/switch-to-configuration test"
255259 '' ;
256260
868872 '' ;
869873
870874 environment . systemPackages = [
871- ( pkgs . nixos-container . override {
872- inherit stateDirectory configurationDirectory ;
873- } )
875+ nixos-container
874876 ] ;
875877
876878 boot . kernelModules = [
You can’t perform that action at this time.
0 commit comments