This commit is contained in:
ponymushama 2024-07-21 20:45:16 +08:00
parent 11cb5f546a
commit f3be463ee9

View file

@ -11,7 +11,7 @@ fi
nix-shell -p git --command "git clone https://github.com/ponymushama/nixos-config.git $SCRIPT_DIR" nix-shell -p git --command "git clone https://github.com/ponymushama/nixos-config.git $SCRIPT_DIR"
# Generate hardware config for new system # 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 # Check if uefi or bios
if [ -d /sys/firmware/efi/efivars ]; then if [ -d /sys/firmware/efi/efivars ]; then