From b1552b1619784935982dd61e212cd04c4d36558b Mon Sep 17 00:00:00 2001 From: Johannes Kresner Date: Sun, 9 Aug 2026 17:11:23 +0200 Subject: [PATCH] fix: multi arch flake --- flake.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index e222f9b..924f65e 100644 --- a/flake.nix +++ b/flake.nix @@ -13,15 +13,19 @@ }; }; - outputs = { self, nixpkgs, home-manager, agenix, ... }: { - homeConfigurations = { - "johannes" = home-manager.lib.homeManagerConfiguration { - pkgs = nixpkgs.legacyPackages."aarch64-darwin"; + outputs = { self, nixpkgs, home-manager, agenix, ... }: + let + mkHome = system: home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.${system}; modules = [ agenix.homeManagerModules.age ./home.nix ]; }; + in { + homeConfigurations = { + mac = mkHome "aarch64-darwin"; + linux = mkHome "x86_64-linux"; + }; }; - }; }