fix: use specialArgs to prevent infinite loop

The `_module.args` option can't be used to pass modules to import, since
it can only be used during the config phase, not the import phase.
This commit is contained in:
Kiana Sheibani 2024-11-20 01:15:44 -05:00
parent 966a1ec8f6
commit 475017cf87
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
2 changed files with 4 additions and 4 deletions

View file

@ -37,8 +37,8 @@ outputs = inputs@{ self, nixpkgs, agenix, rpi5-kernel, ... }:
nixosConfigurations."toki-aether" =
nixpkgs.lib.nixosSystem {
specialArgs.aether = self.nixosModules;
modules = [
{ _module.args = inputs; }
agenix.nixosModules.default
./aether/hardware-configuration.nix
./aether/config.nix