diff --git a/flake.nix b/flake.nix index 18cf208..212a02d 100644 --- a/flake.nix +++ b/flake.nix @@ -49,38 +49,20 @@ }; }; - # Configurations for non-NixOS machines. + # Configurations for home-manager. homeConfigurations = with home-manager.lib; let + forEachHost = lib.genAttrs [ "dev-lt-63" "strawberry" "lime" ]; pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ self.overlays.default ]; }; - in { - # riley @ dev-lt-63 - "dev-lt-63" = homeManagerConfiguration { - inherit pkgs; - modules = [ - ./system/dev-lt-63/home.nix - ./shared/home - ]; - }; - # riley @ strawberry - "strawberry" = homeManagerConfiguration { - inherit pkgs; - modules = [ - ./system/strawberry/home.nix - ./shared/home - ]; - }; - # riley @ lime - "lime" = homeManagerConfiguration { - inherit pkgs; - modules = [ - ./system/lime/home.nix - ./shared/home - ]; - }; - }; + in forEachHost (host: homeManagerConfiguration { + inherit pkgs; + modules = [ + ./system/${host}/home.nix + ./shared/home + ]; + }); overlays = { default = (import ./shared/overlay.nix);