From 4bdb33ff76b86523092e5f4c57ecfcba7c218388 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 26 Feb 2024 20:35:27 -0600 Subject: [PATCH] Fix auto-install for other usernamesc --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7e359e5..4207e85 100755 --- a/install.sh +++ b/install.sh @@ -4,8 +4,9 @@ nix-shell -p git --command "git clone https://gitlab.com/librephoenix/nixos-config ~/.dotfiles" sudo nixos-generate-config --show-hardware-config > ~/.dotfiles/system/hardware-configuration.nix -sed -i "0,/emmet/s//$(whoami)/" flake.nix -sed -i "0,/Emmet/s//$(getent passwd $(whoami) | cut -d ':' -f 5 | cut -d ',' -f 1)/" flake.nix +sed -i "0,/emmet/s//$(whoami)/" ~/.dotfiles/flake.nix +sed -i "0,/Emmet/s//$(getent passwd $(whoami) | cut -d ':' -f 5 | cut -d ',' -f 1)/" ~/.dotfiles/flake.nix +sed -i "s/emmet@librephoenix.com//" ~/.dotfiles/flake.nix if [ -z "$EDITOR" ]; then EDITOR=nano; fi