diff options
| author | seth <[email protected]> | 2024-02-03 19:27:26 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-03 20:47:55 -0500 |
| commit | fcc60b84e5e3cc44986d40af63f5de488caae909 (patch) | |
| tree | 45f4455c7dcbc63e59e62a9af79783e2e5509a2e /modules/flake | |
| parent | de003fa28e56b81a33e831099987cd94d2f53b39 (diff) | |
make everything a module
Diffstat (limited to 'modules/flake')
| -rw-r--r-- | modules/flake/configurations.nix | 10 | ||||
| -rw-r--r-- | modules/flake/default.nix | 1 |
2 files changed, 3 insertions, 8 deletions
diff --git a/modules/flake/configurations.nix b/modules/flake/configurations.nix index ef1ae4e..314e85f 100644 --- a/modules/flake/configurations.nix +++ b/modules/flake/configurations.nix @@ -1,9 +1,7 @@ { config, lib, - withSystem, inputs, - self, ... }: let namespace = "configurations"; @@ -46,8 +44,7 @@ // { modules = args.modules ++ [../../systems/${name} {networking.hostName = name;}]; specialArgs = { - inherit inputs self; - inputs' = withSystem args.system ({inputs', ...}: inputs'); + inherit inputs; secretsDir = ../../secrets/${name}; }; } @@ -70,10 +67,7 @@ ] ++ args.modules; - extraSpecialArgs = { - inherit inputs self; - inputs' = withSystem args.pkgs.system ({inputs', ...}: inputs'); - }; + extraSpecialArgs = {inherit inputs;}; }); mapSystems = type: mapAttrs (name: _: mkSystem type name) cfg.${type}.systems; diff --git a/modules/flake/default.nix b/modules/flake/default.nix index e86bee4..8730f01 100644 --- a/modules/flake/default.nix +++ b/modules/flake/default.nix @@ -1,5 +1,6 @@ { flake.flakeModules = { configurations = import ./configurations.nix; + terranix = import ./terranix.nix; }; } |
