diff options
author | Karel Kočí <cynerd@email.cz> | 2023-03-23 12:31:51 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-03-23 12:31:51 +0100 |
commit | 2dbccc394a4964a2a3badd192184b6d35dd63336 (patch) | |
tree | d11b10501f7f0e520898590969a5c040d6f739f7 /tools | |
parent | 28f1ed4a6a1cbf9b32904a010310e3da0f29b81b (diff) | |
download | nixos-personal-2dbccc394a4964a2a3badd192184b6d35dd63336.tar.gz nixos-personal-2dbccc394a4964a2a3badd192184b6d35dd63336.tar.bz2 nixos-personal-2dbccc394a4964a2a3badd192184b6d35dd63336.zip |
Rework how I pass packages to the NixOS
Diffstat (limited to 'tools')
-rw-r--r-- | tools/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/common.sh b/tools/common.sh index 3f99479..fc4d99e 100644 --- a/tools/common.sh +++ b/tools/common.sh @@ -79,7 +79,7 @@ result() { # Get system of the device device_system() { - nix eval --raw ".#nixosConfigurations.$1.config.nixpkgs.system" + nix eval --raw ".#nixosConfigurations.$1.config.nixpkgs.hostPlatform.system" } build_system() { @@ -102,7 +102,7 @@ build() { local toplevel="config.system.build.toplevel" local bsystem="$(build_system)" if [ "$bsystem" != "$(device_system "$device")" ]; then - toplevel="config.system.build.cross.$bsystem.$toplevel" + toplevel="buildPlatform.$bsystem.$toplevel" fi stage "Building system for device: $device" |