From bc0f59695c8b3ff0bcd813e499464bb050d24b8f Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Tue, 21 Nov 2023 00:57:54 +0400 Subject: [PATCH] exclude dot files when extracting top-level flake --- nixos-infect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index be784e4..9eb8587 100755 --- a/nixos-infect +++ b/nixos-infect @@ -107,7 +107,8 @@ echo '// { users.users.root.hashedPassword = "$6$I8xOgBRfitytj331$WZzyJbABCY8LZ4 setupConf() { mkdir -p ${LOCAL_FLAKE_DIR} - if ! curl "${CONFIG_URL}" | tar -xz -C ${LOCAL_FLAKE_DIR} --strip-components=1 + if ! curl "${CONFIG_URL}" \ + | tar -xz -C ${LOCAL_FLAKE_DIR} --strip-components=1 --exclude=".*" then echo "Error downloading/extracting top level flake configuration!" exit 1