From c21f7efecde83fc3d1abbaf45919993af7cd9f8e Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Wed, 9 Jul 2025 06:25:15 +0800 Subject: [PATCH] feat(flake): add nix-darwin to flake WARNING: This commit includes additions to flake.nix and flake.lock. --- flake.lock | 22 ++++++++++++++++++++++ flake.nix | 5 +++++ 2 files changed, 27 insertions(+) diff --git a/flake.lock b/flake.lock index fb9b627..21693cb 100644 --- a/flake.lock +++ b/flake.lock @@ -337,6 +337,27 @@ "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" + } + }, "nix-index-database": { "inputs": { "nixpkgs": [ @@ -467,6 +488,7 @@ "impermanence": "impermanence", "import-tree": "import-tree", "make-shell": "make-shell", + "nix-darwin": "nix-darwin", "nix-index-database": "nix-index-database", "nixpkgs": "nixpkgs", "nur": "nur", diff --git a/flake.nix b/flake.nix index 86b2997..d6fc5e2 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,11 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + # nix darwin provides declarative mac configuration + nix-darwin = { + url = "github:nix-darwin/nix-darwin/master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; # the nix user repository for mainly firefox extensions nur = { url = "github:nix-community/NUR";