4 Commits

Author SHA1 Message Date
vinceliuice 775e4f7487 Update install.sh 2024-08-19 14:26:40 +08:00
vinceliuice 8357e49262 Fixed issues 2024-08-19 14:18:26 +08:00
Vince a69383892e Merge pull request #227 from quatquatt/update-wiki-link
Update link to point to the new nixos wiki
2024-08-03 01:36:57 +08:00
quatquatt 896ca7f9c9 update link from the former, unofficial nixos wiki page to the new https://wiki.nixos.org 2024-08-02 13:09:36 -04:00
2 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ sudo ./install.sh -r -t tela
```
## Installation with NixOS:
To use this theme with NixOS you will have to enable [flakes](https://nixos.wiki/wiki/flakes). Before you do this, please inform yourself if you really want to, because flakes are still an unstable feature.
To use this theme with NixOS you will have to enable [flakes](https://wiki.nixos.org/wiki/flakes). Before you do this, please inform yourself if you really want to, because flakes are still an unstable feature.
First you will have to add grub2 to your `flake.nix` file as a new input.
```nix
+18 -3
View File
@@ -158,6 +158,14 @@ install() {
#Append GRUB_FONT
echo "GRUB_FONT=/boot/grub2/fonts/unicode.pf2" >> /etc/default/grub
fi
elif [[ -f "/boot/efi/EFI/fedora/fonts/unicode.pf2" ]]; then
if grep "GRUB_FONT=" /etc/default/grub 2>&1 >/dev/null; then
#Replace GRUB_FONT
sed -i "s|.*GRUB_FONT=.*|GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2|" /etc/default/grub
else
#Append GRUB_FONT
echo "GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2" >> /etc/default/grub
fi
fi
fi
@@ -325,6 +333,9 @@ run_dialog() {
5) screen="ultrawide2k" ;;
*) operation_canceled ;;
esac
# clear
echo -e '\0033\0143'
fi
}
@@ -342,9 +353,13 @@ updating_grub() {
elif has_command zypper || has_command transactional-update; then
grub2-mkconfig -o /boot/grub2/grub.cfg
# Check for Fedora (regular or Atomic)
elif has_command dnf || has_command rpm-ostree; then
#Check for BIOS
if [[ -f /boot/grub2/grub.cfg ]]; then
elif has_command dnf || has_command rpm-ostree; then
# Check for UEFI
if [[ -f /boot/efi/EFI/fedora/grub.cfg ]]; then
prompt -s "Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n"
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
# Check for BIOS
elif [[ -f /boot/grub2/grub.cfg ]]; then
prompt -s "Find config file on /boot/grub2/grub.cfg ...\n"
grub2-mkconfig -o /boot/grub2/grub.cfg
fi