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:
parent
966a1ec8f6
commit
475017cf87
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, self, ... }:
|
{ config, lib, pkgs, aether, ... }:
|
||||||
{
|
{
|
||||||
networking.hostName = "toki-aether";
|
networking.hostName = "toki-aether";
|
||||||
time.timeZone = "America/New_York";
|
time.timeZone = "America/New_York";
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
# Aether modules
|
# Aether modules
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.aether
|
aether.aether
|
||||||
self.nixosModules.deploy-rpi5
|
aether.deploy-rpi5
|
||||||
];
|
];
|
||||||
|
|
||||||
aether.domain = "tokinanpa.dev";
|
aether.domain = "tokinanpa.dev";
|
||||||
|
|
|
@ -37,8 +37,8 @@ outputs = inputs@{ self, nixpkgs, agenix, rpi5-kernel, ... }:
|
||||||
|
|
||||||
nixosConfigurations."toki-aether" =
|
nixosConfigurations."toki-aether" =
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs.aether = self.nixosModules;
|
||||||
modules = [
|
modules = [
|
||||||
{ _module.args = inputs; }
|
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
./aether/hardware-configuration.nix
|
./aether/hardware-configuration.nix
|
||||||
./aether/config.nix
|
./aether/config.nix
|
||||||
|
|
Loading…
Reference in a new issue