From 6b9733172a83dbeaf8262d6f67d318ce997ff684 Mon Sep 17 00:00:00 2001 From: Krzysztof Saczuk Date: Mon, 15 Apr 2024 07:54:34 +0200 Subject: [PATCH] docs(nix): fix standalone setup example --- docs/Installation.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/Installation.mdx b/docs/Installation.mdx index 0d46782..1fe511b 100644 --- a/docs/Installation.mdx +++ b/docs/Installation.mdx @@ -139,6 +139,12 @@ To use this theme in a standalone setup, a bare-minimum configuration would be a outputs = { self, nixpkgs, ... }@inputs: { nixosConfigurations."default" = nixpkgs.lib.nixosSystem rec { system = "x86_64-linux"; + + specialArgs = { + # Pass system and inputs to the configuration.nix file + inherit system inputs; + }; + modules = [ ./configuration.nix ]; @@ -147,7 +153,7 @@ To use this theme in a standalone setup, a bare-minimum configuration would be a } ``` ```nix:configuration.nix -{ config, pkgs, lib, inputs, ... }: { +{ config, pkgs, lib, inputs, system, ... }: { boot.loader.grub = rec { theme = inputs.distro-grub-themes.packages.${system}.-grub-theme;