From 8a4d8906d31ea0afb4c802e0239594fd7a5352b7 Mon Sep 17 00:00:00 2001
From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com>
Date: Mon, 13 Jan 2025 09:24:36 +0100
Subject: [PATCH] doc: fallback to pkgs.system on nix

---
 README.md | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index a060cd7..fac9f3d 100644
--- a/README.md
+++ b/README.md
@@ -526,10 +526,18 @@ nix profile install github:winapps-org/winapps#winapps-launcher # optional
       nixosConfigurations.hostname = nixpkgs.lib.nixosSystem rec {
         system = "x86_64-linux";
 
+        specialArgs = {
+          inherit inputs system;
+        };
+
         modules = [
           ./configuration.nix
           (
-            { pkgs, ... }:
+            {
+              pkgs,
+              system ? pkgs.system,
+              ...
+            }:
             {
               # set up binary cache (optional)
               nix.settings = {
@@ -556,7 +564,11 @@ However, if you still don't want to use flakes, you can use WinApps with flake-c
 
 ```nix
 # configuration.nix
-{ system, ... }:
+{
+  pkgs,
+  system ? pkgs.system,
+  ...
+}:
 {
   # set up binary cache (optional)
   nix.settings = {
-- 
GitLab