From 6dcc21244adb34cc835bad0c327de4f0a490e2e7 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Mon, 17 Apr 2023 17:33:30 +0000 Subject: [PATCH] Add Thelio with NVIDIA sed option --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 14412e8..dadf1a8 100644 --- a/install.sh +++ b/install.sh @@ -161,7 +161,7 @@ elif [ $deviceChoice = 3 ]; then sudo sed -i "11 i \ ./galp4.nix" /mnt/etc/nixos/configuration.nix elif [ $deviceChoice = 4 ]; then - curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/systems/thelio-nvidia.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/ + elif [ $deviceChoice = 5 ]; then curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/systems/hp-omen.nix > hp-omen.nix; sudo mv -f hp-omen.nix /mnt/etc/nixos/ @@ -180,5 +180,8 @@ fi # Replace LUKS device sudo sed -i "s#/dev/sda#$rootName#g" /mnt/etc/nixos/configuration.nix +# Disable latest kernel for Thelio with NVIDIA GPU +sudo sed -i "s/boot.kernelPackages/# boot.kernelPackages/g" /mnt/etc/nixos/configuration.nix + # Install sudo nixos-install