ITADN

error: cannot add path '/nix/store/gj6hz9mj23v01yvq1nn5f655jrcky1qq-nixos-option.nix' because it lacks a signature by a trusted key

#616Openjamesla 创建于 2026-01-21
bug
J
jameslacommented
### Prerequisites - [x] I have updated to the latest version using `nix run --refresh github:nix-community/nixos-anywhere` - [x] I have reproduced the issue with the `--debug` flag - [x] I have searched existing issues to make sure this isn't a duplicate ### Bug Description nixos anywhere doesn't appear to be working against the nixos installer iso any longer i have tried both against minimal and full. command I am using is `nix run github:nix-community/nixos-anywhere -- --env-password --build-on-remote --flake .#provision --generate-hardware-config nixos-generate-config ./hardware-configuration.nix nixos@192.168.1.69` Is this working for anyone else? I suspect this may be a regression with the latest nixos installer iso as this was working previously. ### Steps to Reproduce 1. boot nixos installer iso on remote machine 2. run `nix run github:nix-community/nixos-anywhere -- --env-password --build-on-remote --flake .#provision --generate-hardware-config nixos-generate-config ./hardware-configuration.nix nixos@x.x.x.x` ### Debug Logs ```shell ... + blkid /dev/pool/root + grep -q TYPE= + set -efux + destroy=1 + device=/dev/nvme0n1 + imageName=disk1 + imageSize=2G + name=disk1 + type=disk + device=/dev/nvme0n1 + efiGptPartitionFirst=1 + type=gpt + name=pool + type=lvm_vg + vgchange -a y 1 logical volume(s) in volume group "pool" now active + name=pool + type=lvm_vg + device=/dev/pool/root + extraArgs=() + declare -a extraArgs + format=ext4 + mountOptions=('defaults') + declare -a mountOptions + mountpoint=/ + type=filesystem + findmnt /dev/pool/root /mnt/ + mount /dev/pool/root /mnt/ -t ext4 -o defaults -o X-mount.mkdir + destroy=1 + device=/dev/nvme0n1 + imageName=disk1 + imageSize=2G + name=disk1 + type=disk + device=/dev/nvme0n1 + efiGptPartitionFirst=1 + type=gpt + device=/dev/disk/by-partlabel/disk-disk1-ESP + extraArgs=() + declare -a extraArgs + format=vfat + mountOptions=('defaults') + declare -a mountOptions + mountpoint=/boot + type=filesystem + findmnt /dev/disk/by-partlabel/disk-disk1-ESP /mnt/boot + mount /dev/disk/by-partlabel/disk-disk1-ESP /mnt/boot -t vfat -o defaults -o X-mount.mkdir + rm -rf /tmp/tmp.M60tJTfkI3 Connection to 192.168.1.69 closed. ### Building the system closure ### warning: Git tree '/home/james/lancation-server' is dirty warning: ignoring the client-specified setting 'store', because it is a restricted setting and you are not a trusted user warning: ignoring the client-specified setting 'store', because it is a restricted setting and you are not a trusted user Warning: Permanently added '192.168.1.69' (ED25519) to the list of known hosts. error: cannot add path '/nix/store/gj6hz9mj23v01yvq1nn5f655jrcky1qq-nixos-option.nix' because it lacks a signature by a trusted key make: *** [Makefile:11: provision] Error 1 ``` ### Command Used nix run github:nix-community/nixos-anywhere -- --env-password --build-on-remote --flake .#provision --generate-hardware-config nixos-generate-config ./hardware-configuration.nix nixos@192.168.1.69 ### Target System Bare metal server ### NixOS Version 25.11 ### Environment Information - Host OS: - Nix version: - Target architecture: ### Configuration Files ```nix ``` ### Additional Context _No response_
3 条评论