From a56f80a5c6483c6dcf3db64a1a0218d68ac691f9 Mon Sep 17 00:00:00 2001 From: ini <81521595+InioX@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:05:41 +0100 Subject: [PATCH] docs: update note syntax --- README.md | 101 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 66 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 5026cd1..8e89ea3 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ -> **Warning** +> [!WARNING] > The showcase may be outdated and look differently.

@@ -86,16 +86,20 @@ bash <(curl -s https://raw.githubusercontent.com/InioX/dotfiles/nixos/install.sh Adding new hosts

-
Click to show - -The name of the folder should be your hostname and it should be located in `hosts/`. Every host folder should contain a `default.nix` file and `hardware.nix`. +> [!IMPORTANT] +> The name of the folder should be your hostname and it should be located in `hosts/`. Every host folder should contain a `default.nix` file and `hardware.nix`. -To get a `hardware.nix` file: +1. Make a folder inside `hosts/` ```sh -nixos-generate-config +mkdir hosts/ ``` -To get a `default.nix` file, you can modify this template: +2. Get a `hardware.nix` file and copy it into `hosts/` +```sh +nixos-generate-config && cp /etc/nixos/hardware-configuration.nix /hosts//hardware.nix +``` + +3. To get a `default.nix` file, you can modify this template. ```nix @@ -107,7 +111,7 @@ To get a `default.nix` file, you can modify this template: ... }: with lib; { - imports = [./hardware.nix ../../modules]; + imports = [./hardware.nix]; # Configure the bootloader boot.loader = { @@ -124,11 +128,43 @@ with lib; { # Enable networking networking.networkmanager.enable = true; - # Anything else here... You can also use `zenyte.` to configure stuff. + zenyte.presets = { + common = enabled; + development = enabled; + social = enabled; + }; + + zenyte.system.locale.timeZone = "Europe/Prague"; + zenyte.system.defaultShell = pkgs.zsh; + + zenyte.desktop = { + # xfce.enable = true; + # awesome.enable = true; + hyprland = enabled; + }; + + zenyte.browsers = { + brave = disabled; + chromium = disabled; + + firefox = { + enable = true; + # Default extensions: `ublock-origin`, `plasma-integration` + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + bitwarden + ]; + }; + }; + # Anything else here... You can also use `zenyte.
-

- Broken bootloader after dual booting Windows + Broken bootloader after dual booting Windows or updating BIOS

-
Click to show - 1. Boot the live usb and mount partitions - > **Warning** - > The partition and drive names will not be the same for everyone - ```sh - sudo mount /dev/nvme0n1p2 /mnt - sudo mount /dev/nvme0n1p1 /mnt/boot - ``` +> [!CAUTION] +> The partition and drive names will not be the same for everyone -2. Move `/mnt/boot/EFI/Microsoft` to `/mnt/boot/EFI/Microsoft.bak` +```sh +sudo mount /dev/nvme0n1p2 /mnt +sudo mount /dev/nvme0n1p1 /mnt/boot +``` - ```sh - sudo mv /mnt/boot/EFI/Microsoft /mnt/boot/EFI/Microsoft.bak - ``` +3. Move `/mnt/boot/EFI/Microsoft` to `/mnt/boot/EFI/Microsoft.bak` -3. Reboot +```sh +sudo mv /mnt/boot/EFI/Microsoft /mnt/boot/EFI/Microsoft.bak +``` -4. Everything should work now, except you can't choose Windows from the Bootloader +4. Reboot -5. Repeat step `1.` +5. Everything should work now, except you can't choose Windows from the Bootloader -6. Move `/mnt/boot/EFI/Microsoft.bak` back to the original position of `/mnt/boot/EFI/Microsoft` +6. Repeat step `1.` - ```sh - sudo mv /mnt/boot/EFI/Microsoft /mnt/boot/EFI/Microsoft.bak - ``` +7. Move `/mnt/boot/EFI/Microsoft.bak` back to the original position of `/mnt/boot/EFI/Microsoft` -7. Reboot +```sh +sudo mv /mnt/boot/EFI/Microsoft /mnt/boot/EFI/Microsoft.bak +``` -8. Everything should work again as intended +8. Reboot -
+9. Everything should work again as intended