diff --git a/flake.nix b/flake.nix index 6525c0f..c51e8ab 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,13 @@ specialArgs = { inherit nix-homebrew; }; }; + darwinConfigurations."imac" = nix-darwin.lib.darwinSystem { + modules = [ + ./hosts/darwin/imac/system.nix + ]; + specialArgs = { inherit nix-homebrew; }; + }; + nixosConfigurations."hs" = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ @@ -62,6 +69,12 @@ extraSpecialArgs = { inherit claude-code nixvim firefox-addons; }; }; + "yanlin@imac" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.aarch64-darwin; + modules = [ ./hosts/darwin/imac/home.nix ]; + extraSpecialArgs = { inherit claude-code nixvim firefox-addons; }; + }; + "yanlin@hs" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; modules = [ ./hosts/nixos/hs/home.nix ]; diff --git a/hosts/darwin/imac/home.nix b/hosts/darwin/imac/home.nix new file mode 100644 index 0000000..4e69ddb --- /dev/null +++ b/hosts/darwin/imac/home.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ../home-default.nix + ]; + + # MacBook-specific home configuration + # Example: Laptop-specific tools, power management, etc. +} diff --git a/hosts/darwin/imac/system.nix b/hosts/darwin/imac/system.nix new file mode 100644 index 0000000..6224d81 --- /dev/null +++ b/hosts/darwin/imac/system.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ + # MacBook-specific configuration + networking.computerName = "imac"; + networking.hostName = "imac"; + + # Import common Darwin configuration + imports = [ + ../system-default.nix + ]; +}