From 16d4a9e9d18c1ae521726a1678768d08cef40f77 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 14 Jul 2025 13:26:44 +0800 Subject: [PATCH] feat(configs): Pass flake to nixosSystem and darwinSystem --- nix/configurations.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nix/configurations.nix b/nix/configurations.nix index 9164647..ecc9c2f 100644 --- a/nix/configurations.nix +++ b/nix/configurations.nix @@ -28,7 +28,10 @@ let name: value: if class == "nixos" then nixosSystem { - specialArgs.hostName = name; + specialArgs = { + inherit (config.flake) self; + hostName = name; + }; modules = [ cfg.modules.nixos.default inputs.home-manager.nixosModules.home-manager @@ -38,11 +41,15 @@ let } else if class == "darwin" then darwinSystem { - specialArgs = { inherit (config.flake) self; }; + specialArgs = { + inherit (config.flake) self; + hostName = name; + }; modules = [ cfg.modules.darwin.default inputs.home-manager.darwinModules.home-manager { home-manager = globalCfg name value; } + (value.extraCfg or { }) ] ++ optional value.graphical cfg.modules.darwin.graphical; } else