Another test via git

This commit is contained in:
Emmet 2024-02-25 12:31:46 -06:00
parent 3315322eac
commit 83a12f6486

View file

@ -2,12 +2,14 @@
# Automated script to install my dotfiles # Automated script to install my dotfiles
nix-shell -p git --command "git clone https://gitlab.com/librephoenix/nixos-config ~/.dotfiles" echo "echo works"
sudo nixos-generate-config --show-hardware-config > ~/.dotfiles/system/hardware-configuration.nix
if [ -z "$EDITOR" ]; then # nix-shell -p git --command "git clone https://gitlab.com/librephoenix/nixos-config ~/.dotfiles"
EDITOR=nano; # sudo nixos-generate-config --show-hardware-config > ~/.dotfiles/system/hardware-configuration.nix
fi # if [ -z "$EDITOR" ]; then
$EDITOR ~/.dotfiles/flake.nix; # EDITOR=nano;
sudo nixos-rebuild switch --flake ~/.dotfiles#system; # fi
nix run home-manager/master -- switch --flake ~/.dotfiles#user; # $EDITOR ~/.dotfiles/flake.nix;
sudo ~/.dotfiles/harden.sh; # sudo nixos-rebuild switch --flake ~/.dotfiles#system;
# nix run home-manager/master -- switch --flake ~/.dotfiles#user;
# sudo ~/.dotfiles/harden.sh;