flake: pass inputs as special argument to modules

This commit is contained in:
Alexander Kobjolke 2023-07-29 19:55:19 +02:00
parent 40843d9338
commit a8cbaa1647

View file

@ -45,8 +45,9 @@
outputs = { home-manager, nixpkgs, agenix, snm, ... }@inputs: { outputs = { home-manager, nixpkgs, agenix, snm, ... }@inputs: {
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem { nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [ modules = [
({ ({ inputs, ... }: {
nixpkgs = { nixpkgs = {
config.allowUnfree = true; config.allowUnfree = true;
overlays = with inputs; [ emacs.overlay ]; overlays = with inputs; [ emacs.overlay ];