From 47e36412bfcbdde7850f41b78d1330ccef60f113 Mon Sep 17 00:00:00 2001 From: ponymushama Date: Sun, 21 Jul 2024 17:07:49 +0800 Subject: [PATCH] update install.sh --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 622cc01..af0eb8b 100755 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ fi nix-shell -p git --command "git clone https://github.com/ponymushama/nixos-config.git $SCRIPT_DIR" # Generate hardware config for new system -sudo nixos-generate-config --show-hardware-config >$SCRIPT_DIR/system/hardware-configuration.nix +sudo nixos-generate-config --show-hardware-config > $SCRIPT_DIR/system/hardware-configuration.nix # Check if uefi or bios if [ -d /sys/firmware/efi/efivars ]; then @@ -23,9 +23,9 @@ else fi # Patch flake.nix with different username/name and remove email by default -sed -i "0,/emmet/s//$(whoami)/" $SCRIPT_DIR/flake.nix -sed -i "0,/Emmet/s//$(getent passwd $(whoami) | cut -d ':' -f 5 | cut -d ',' -f 1)/" $SCRIPT_DIR/flake.nix -sed -i "s/emmet@librephoenix.com//" $SCRIPT_DIR/flake.nix +sed -i "0,/ama/s//$(whoami)/" $SCRIPT_DIR/flake.nix +sed -i "0,/ama/s//$(getent passwd $(whoami) | cut -d ':' -f 5 | cut -d ',' -f 1)/" $SCRIPT_DIR/flake.nix +sed -i "s/ponymushama@gmail.com//" $SCRIPT_DIR/flake.nix sed -i "s+~/.dotfiles+$SCRIPT_DIR+g" $SCRIPT_DIR/flake.nix # Open up editor to manually edit flake.nix before install