=== modified file 'zsh-functions/confz_containers_init' --- old/zsh-functions/confz_containers_init 2022-06-23 00:18:49 +0000 +++ new/zsh-functions/confz_containers_init 2022-06-23 00:01:31 +0000 @@ -1032,11 +1032,6 @@ require container_nix_image_installed :filename :root :image_name \ :svscan_dir :uid :gid :containers_dir :user - - require fs_l filename="$vars[root]/nix/var/nix/profiles/default" \ - destination="per-user/root/profile" - require fs_o filename="$vars[root]/nix/var/nix/profiles/default" \ - owner=$vars[uid]:$vars[gid] } confz_container_nix_packages_installed_check() { @@ -1046,20 +1041,9 @@ :image_name local root=$vars[containers_dir]/systems/$vars[image_name] - local profile_dir=$root/nix/var/nix/profiles/per-user/root/profile - local -A stat_info - zstat -H stat_info $profile_dir - # while it's a symlink - while (( $fileset_stat_cur[mode] >> 12 == 10 )); do - if [[ $stat_info[link] == /* ]]; then - profile_dir=$root$stat_info[link] - else - die "TODO? relative symlink: ${(qqq)profile_dir}" - fi - done local -a world=( "${(@f)$( grep -o 'outPath = "[^"]*"' \ - $profile_dir/manifest.nix \ + $root/var/lib/nix/profiles/default/manifest.nix \ | uniq | sed 's|^outPath = "/nix/store/[^-]*-||;s|"$||' )}" ) local -a missing