mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 17:24:35 +05:30
Fix auto-install for other usernamesc
This commit is contained in:
parent
ac9165a700
commit
4bdb33ff76
|
@ -4,8 +4,9 @@
|
||||||
|
|
||||||
nix-shell -p git --command "git clone https://gitlab.com/librephoenix/nixos-config ~/.dotfiles"
|
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
|
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//$(whoami)/" ~/.dotfiles/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//$(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
|
if [ -z "$EDITOR" ]; then
|
||||||
EDITOR=nano;
|
EDITOR=nano;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue