From a8cbaa1647d0d0ed2e7b42f62384fc69b6582557 Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Sat, 29 Jul 2023 19:55:19 +0200 Subject: [PATCH] flake: pass inputs as special argument to modules --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 81be2fc..633ac3e 100644 --- a/flake.nix +++ b/flake.nix @@ -45,8 +45,9 @@ outputs = { home-manager, nixpkgs, agenix, snm, ... }@inputs: { nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + specialArgs = { inherit inputs; }; modules = [ - ({ + ({ inputs, ... }: { nixpkgs = { config.allowUnfree = true; overlays = with inputs; [ emacs.overlay ];