From c5b1c207532dd29b14d3f1a7b6b25a01a2e4824b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 11 Sep 2023 16:55:36 -0700 Subject: add configuration for the M2 macbook air --- flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 9ede1aa..6a2cfa5 100644 --- a/flake.nix +++ b/flake.nix @@ -42,6 +42,9 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + darwin.url = "github:lnl7/nix-darwin"; + darwin.inputs.nixpkgs.follows = "nixpkgs"; + pre-commit-hooks = { type = "github"; owner = "cachix"; @@ -56,7 +59,7 @@ }; # Output config, or config for NixOS system - outputs = inputs@{ self, ... }: + outputs = inputs@{ self, darwin, home-manager, ... }: let myLib = import ./nix inputs; lib = inputs.nixpkgs.lib // builtins; @@ -158,6 +161,15 @@ tahoe = myLib.mkSystem { hostname = "tahoe"; }; }; + darwinConfigurations = { + "mba-fcuny" = darwin.lib.darwinSystem { + system = "aarch64-darwin"; + modules = [ + ./hosts/mba + ]; + }; + }; + homeConfigurations = { useGlobalPkgs = true; useUserPackages = true; -- cgit 1.4.1