mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos: Make config.nix.enable pass test
This commit is contained in:
parent
8f57dc38d9
commit
eb8b70c020
5 changed files with 31 additions and 4 deletions
|
@ -796,7 +796,7 @@ in
|
|||
# allow `system.build.toplevel' to be included. (If we had a direct
|
||||
# reference to ${regInfo} here, then we would get a cyclic
|
||||
# dependency.)
|
||||
boot.postBootCommands =
|
||||
boot.postBootCommands = lib.mkIf config.nix.enable
|
||||
''
|
||||
if [[ "$(cat /proc/cmdline)" =~ regInfo=([^ ]*) ]]; then
|
||||
${config.nix.package.out}/bin/nix-store --load-db < ''${BASH_REMATCH[1]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue