diff options
| author | seth <[email protected]> | 2024-05-05 11:35:18 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-05 11:35:18 -0400 |
| commit | 34a7a042a36b63eb6b900932b1e420e4b6014a57 (patch) | |
| tree | 40dace9b4bb7b6e99c5d54165d8eb203963f5306 /modules/flake/terranix.nix | |
| parent | 9380483bdf038149fc308698e9f115b1474a0c85 (diff) | |
simplify some things (#353)
* flake: drop flake-parts
* flake: add back flake-parts
* flake: use flake module again for configurations
Diffstat (limited to 'modules/flake/terranix.nix')
| -rw-r--r-- | modules/flake/terranix.nix | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/modules/flake/terranix.nix b/modules/flake/terranix.nix deleted file mode 100644 index 0d39043..0000000 --- a/modules/flake/terranix.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ - lib, - flake-parts-lib, - inputs, - ... -}: let - namespace = "terranix"; - - inherit - (lib) - literalExpression - mkOption - mkPackageOption - types - ; - - inherit - (flake-parts-lib) - mkPerSystemOption - ; -in { - options = { - perSystem = mkPerSystemOption ({ - config, - pkgs, - system, - ... - }: let - cfg = config.${namespace}; - in { - options.${namespace} = { - modules = mkOption { - type = types.listOf types.unspecified; - default = []; - example = literalExpression "[ ./terranix ]"; - description = '' - Modules to use in this terranixConfiguration - ''; - }; - - package = mkPackageOption pkgs "opentofu" { - default = ["opentofu"]; - example = literalExpression "pkgs.opentofu.withPlugins (plugins: [ plugins.tailscale ] )"; - }; - }; - - config = { - packages.terranix = inputs.terranix.lib.terranixConfiguration { - inherit system; - inherit (cfg) modules; - }; - }; - }); - }; -} |
