Compare commits

..

2 Commits

Author SHA1 Message Date
bed9bef684 Fixed username replacement 2025-01-29 16:57:39 -08:00
ebefcccd9e Merge pull request 'Added username replacement' (#1) from devlopment into main
Reviewed-on: #1
2025-01-29 16:43:37 -08:00

View File

@@ -23,12 +23,12 @@ nix-channel --add https://nixos.org/channels/nixos-24.11 nixpkgs
nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager
nix-channel --update
files=("home-manager/home.nix" "home-manager/cli-tools.nix")
files=("home.nix" "cli-tools.nix")
for file in "${files[@]}"; do
if [ -f "$file" ]; then
# Use sed to replace 'USER' with the replacement word
sed -i "s/USER/$replacement_word/g" "$file"
sed -i "s/USER/$USER/g" $file
echo "Processed: $file"
else
echo "Error: $file does not exist or is not a regular file."