diff --git a/flake.lock b/flake.lock index 6331e3b..5f70800 100644 --- a/flake.lock +++ b/flake.lock @@ -82,11 +82,11 @@ ] }, "locked": { - "lastModified": 1749131129, - "narHash": "sha256-tJ+93i7N4QttM75bE8T09LlSU3Mv6Dfi9WaVBvlWilo=", + "lastModified": 1751569544, + "narHash": "sha256-iWjzNHaSU+pm4TS/vzkzgBdbTwkyHy8Jc6PlcrgdgyU=", "owner": "nix-community", "repo": "home-manager", - "rev": "13a45ede6c17b5e923dfc18a40a3f646436f4809", + "rev": "28639e6470ef597fe9f5efc4c6594306859d62ed", "type": "github" }, "original": { @@ -95,13 +95,34 @@ "type": "github" } }, + "nix-darwin": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1751313918, + "narHash": "sha256-HsJM3XLa43WpG+665aGEh8iS8AfEwOIQWk3Mke3e7nk=", + "owner": "nix-darwin", + "repo": "nix-darwin", + "rev": "e04a388232d9a6ba56967ce5b53a8a6f713cdfcf", + "type": "github" + }, + "original": { + "owner": "nix-darwin", + "ref": "master", + "repo": "nix-darwin", + "type": "github" + } + }, "nixpkgs": { "locked": { - "lastModified": 1749145035, - "narHash": "sha256-7hU9TqHpz3BhcgoP3J/udnvZ3QCurGEBD+ERhvKbJEE=", + "lastModified": 1751571573, + "narHash": "sha256-vyhLXk2EsyTSxZ8cETmAAUF/fp8hQ3lZ6fUC0p6+LsY=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a537c74d1071ca48aa835f731998094a4058a6f3", + "rev": "e50e2a177e0aaa0fd02c10fa365252f91b50cbf4", "type": "github" }, "original": { @@ -135,11 +156,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1749201010, - "narHash": "sha256-haiPLogZwEFQTrIarZD92LUK7ScIcMbtEzPlcC988Qk=", + "lastModified": 1751571902, + "narHash": "sha256-5EimK/KBs+UHVC3d9L1oagFWIzOlU2lOq0eI5kOTTWI=", "owner": "nix-community", "repo": "NUR", - "rev": "17efc5275a8f21e2b48f39ecade74cdaff3ba411", + "rev": "b19bd45d58ab88e1700cc3032139676fae7f3ea1", "type": "github" }, "original": { @@ -153,6 +174,7 @@ "apple-silicon": "apple-silicon", "flake-utils": "flake-utils", "home-manager": "home-manager", + "nix-darwin": "nix-darwin", "nixpkgs": "nixpkgs", "nur": "nur", "sops-nix": "sops-nix" @@ -163,11 +185,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1749592509, - "narHash": "sha256-VunQzfZFA+Y6x3wYi2UE4DEQ8qKoAZZCnZPUlSoqC+A=", + "lastModified": 1750119275, + "narHash": "sha256-Rr7Pooz9zQbhdVxux16h7URa6mA80Pb/G07T4lHvh0M=", "owner": "mic92", "repo": "sops-nix", - "rev": "50754dfaa0e24e313c626900d44ef431f3210138", + "rev": "77c423a03b9b2b79709ea2cb63336312e78b72e2", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 315b0c5..7f4f41c 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,10 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-darwin = { + url = "github:nix-darwin/nix-darwin/master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; nur = { url = "github:nix-community/NUR"; inputs.nixpkgs.follows = "nixpkgs"; @@ -23,13 +27,14 @@ }; outputs = { + self, nixpkgs, apple-silicon, flake-utils, home-manager, + nix-darwin, nur, sops-nix, - ... }@inputs: let supportedSystems = [ @@ -72,7 +77,9 @@ pkgs = import nixpkgs { inherit system overlays; }; - modules = [ ./home/irl.nix ]; + modules = [ + ./home/irl.nix + ]; }; "irl-gui-${system}" = home-manager.lib.homeManagerConfiguration { pkgs = import nixpkgs { @@ -90,5 +97,13 @@ } // flake-utils.lib.eachSystem supportedSystems (system: { formatter = nixpkgs.legacyPackages.${system}.nixfmt-tree; - }); + }) + // { + darwinConfigurations."irl-mac-mini" = nix-darwin.lib.darwinSystem { + system = "aarch64-darwin"; + modules = [ + ./darwin/common.nix + ]; + }; + }; }