diff --git a/flake.lock b/flake.lock index 5eca14514..c4e47feef 100644 --- a/flake.lock +++ b/flake.lock @@ -1477,6 +1477,64 @@ "type": "github" } }, + "nix-rosetta-builder": { + "inputs": { + "nixos-generators": "nixos-generators", + "nixpkgs": [ + "nixpkgs-unstable" + ] + }, + "locked": { + "lastModified": 1735003913, + "narHash": "sha256-mGxomAgK7L2D9yqJEKUylH2XLhgGo7/51FybEjkrb7o=", + "owner": "cpick", + "repo": "nix-rosetta-builder", + "rev": "1d7b9c4376807f74aefac227f3b29e719bef853d", + "type": "github" + }, + "original": { + "owner": "cpick", + "repo": "nix-rosetta-builder", + "type": "github" + } + }, + "nixlib": { + "locked": { + "lastModified": 1733620091, + "narHash": "sha256-5WoMeCkaXqTZwwCNLRzyLxEJn8ISwjx4cNqLgqKwg9s=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "f4dc9a6c02e5e14d91d158522f69f6ab4194eb5b", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "nixos-generators": { + "inputs": { + "nixlib": "nixlib", + "nixpkgs": [ + "nix-rosetta-builder", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1733706547, + "narHash": "sha256-BdFW7TMgES7q8I5FGX5hlz+0Xp4WyfAP3tHDwEupSWU=", + "owner": "nix-community", + "repo": "nixos-generators", + "rev": "f5a0197ccfef7388885fc9455e74d6dd39e0c5e8", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixos-generators", + "type": "github" + } + }, "nixos-wsl": { "inputs": { "flake-compat": "flake-compat_6", @@ -2006,6 +2064,7 @@ "lanzaboote": "lanzaboote", "nix-flatpak": "nix-flatpak", "nix-index-database": "nix-index-database", + "nix-rosetta-builder": "nix-rosetta-builder", "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs_11", "nixpkgs-unstable": "nixpkgs-unstable", diff --git a/flake.nix b/flake.nix index 93a36eb3a..2aeb5c246 100644 --- a/flake.nix +++ b/flake.nix @@ -90,6 +90,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + nix-rosetta-builder = { + url = "github:cpick/nix-rosetta-builder"; + inputs.nixpkgs.follows = "nixpkgs-unstable"; + }; + # Nix User Repository (master) nur.url = "github:nix-community/NUR"; @@ -188,7 +193,10 @@ systems = { modules = { - darwin = with inputs; [ sops-nix.darwinModules.sops ]; + darwin = with inputs; [ + nix-rosetta-builder.darwinModules.default + sops-nix.darwinModules.sops + ]; nixos = with inputs; [ disko.nixosModules.disko lanzaboote.nixosModules.lanzaboote