diff --git a/inventory.json b/inventory.json index 2d815115e..8a8fe11ed 100644 --- a/inventory.json +++ b/inventory.json @@ -12,8 +12,7 @@ }, "description": "A nice thing", "icon": "./path/to/icon.png", - "tags": ["1", "2", "3"], - "system": "x86_64-linux" + "tags": ["1", "2", "3"] } }, "services": { diff --git a/lib/inventory/build-inventory/default.nix b/lib/inventory/build-inventory/default.nix index 5b5b53a4d..cf7b8394e 100644 --- a/lib/inventory/build-inventory/default.nix +++ b/lib/inventory/build-inventory/default.nix @@ -154,9 +154,6 @@ let ) [ ] inventory.services # Append each machine config ++ [ - (lib.optionalAttrs (machineConfig.system or null != null) { - config.nixpkgs.hostPlatform = machineConfig.system; - }) (lib.optionalAttrs (machineConfig.deploy.targetHost or null != null) { config.clan.core.networking.targetHost = machineConfig.deploy.targetHost; }) diff --git a/lib/inventory/build-inventory/interface.nix b/lib/inventory/build-inventory/interface.nix index 56c05fb3b..a0b72e3e0 100644 --- a/lib/inventory/build-inventory/interface.nix +++ b/lib/inventory/build-inventory/interface.nix @@ -142,10 +142,6 @@ in apply = lib.unique; type = types.listOf types.str; }; - system = lib.mkOption { - default = null; - type = types.nullOr types.str; - }; deploy.targetHost = lib.mkOption { description = "Configuration for the deployment of the machine"; default = null; diff --git a/pkgs/clan-cli/tests/test_modules.py b/pkgs/clan-cli/tests/test_modules.py index 9d70b805f..6ff97e4ee 100644 --- a/pkgs/clan-cli/tests/test_modules.py +++ b/pkgs/clan-cli/tests/test_modules.py @@ -55,9 +55,7 @@ def test_add_module_to_inventory( ) opts = CreateOptions( clan_dir=FlakeId(str(base_path)), - machine=Machine( - name="machine1", tags=[], system="x86_64-linux", deploy=MachineDeploy() - ), + machine=Machine(name="machine1", tags=[], deploy=MachineDeploy()), ) create_machine(opts)