From d2ff7f7653c467adf61be22a91a6af8c13bb615a Mon Sep 17 00:00:00 2001 From: Krzysztof Saczuk Date: Mon, 15 Apr 2024 03:54:23 +0200 Subject: [PATCH] docs(nix): add file names using code titles --- docs/Installation.mdx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/Installation.mdx b/docs/Installation.mdx index 477f8d7..504ec87 100644 --- a/docs/Installation.mdx +++ b/docs/Installation.mdx @@ -99,9 +99,8 @@ sudo eopkg install grub-customizer ``` ### NixOS module -To use this theme as a NixOS module, a bare-minimum configuration would be as follows: -`flake.nix`: -```nix +To use this theme as a NixOS module, a bare-minimum configuration would be as follows: +```nix:flake.nix { inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; @@ -119,8 +118,7 @@ To use this theme as a NixOS module, a bare-minimum configuration would be as fo } ``` -`configuration.nix`: -```nix +```nix:configuration.nix { config, pkgs, lib, ... }: { distro-grub-themes = { enable = true; @@ -130,9 +128,8 @@ To use this theme as a NixOS module, a bare-minimum configuration would be as fo ``` ### Standalone setup -To use this theme in a standalone setup, a bare-minimum configuration would be as follows: -`flake.nix`: -```nix +To use this theme in a standalone setup, a bare-minimum configuration would be as follows: +```nix:flake.nix { inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; @@ -148,8 +145,7 @@ To use this theme in a standalone setup, a bare-minimum configuration would be a }; } ``` -`configuration.nix`: -```nix +```nix:configuration.nix { config, pkgs, lib, inputs, ... }: { boot.loader.grub = rec {