Skip to content

Commit a1d93f9

Browse files
bors[bot]Mic92
andauthored
Merge #73
73: quote flake attr to allow dots in nixos hostname r=Mic92 a=Mic92 Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2 parents bc0e634 + dfd9b25 commit a1d93f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nixos-anywhere.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ if [[ -n ${flake-} ]]; then
173173
echo 'For example, to use the output nixosConfigurations.foo from the flake.nix, append "#foo" to the flake-uri.' >&2
174174
exit 1
175175
fi
176-
disko_script=$(nix_build "${flake}#nixosConfigurations.${flakeAttr}.config.system.build.disko")
177-
nixos_system=$(nix_build "${flake}#nixosConfigurations.${flakeAttr}.config.system.build.toplevel")
176+
disko_script=$(nix_build "${flake}#nixosConfigurations.\"${flakeAttr}\".config.system.build.disko")
177+
nixos_system=$(nix_build "${flake}#nixosConfigurations.\"${flakeAttr}\".config.system.build.toplevel")
178178
elif [[ -n ${disko_script-} ]] && [[ -n ${nixos_system-} ]]; then
179179
if [[ ! -e ${disko_script} ]] || [[ ! -e ${nixos_system} ]]; then
180180
abort "${disko_script} and ${nixos_system} must be existing store-paths"

0 commit comments

Comments
 (0)