From 8c39d36c11f53df5f01600305e0dffff3f068b98 Mon Sep 17 00:00:00 2001 From: musjj <72612857+musjj@users.noreply.github.com> Date: Tue, 23 Sep 2025 23:44:10 +0700 Subject: [PATCH] flake: add default module outputs to align with ecosystem conventions --- flake/modules.nix | 136 +++++++++++++++++++++++++--------------------- 1 file changed, 74 insertions(+), 62 deletions(-) diff --git a/flake/modules.nix b/flake/modules.nix index 8dbfa13bb..c44238f92 100644 --- a/flake/modules.nix +++ b/flake/modules.nix @@ -1,70 +1,82 @@ { inputs, self, ... }: { flake = { - nixosModules.stylix = - { pkgs, ... }@args: - { - imports = [ - ../stylix/nixos - { - stylix = { - inherit inputs; - paletteGenerator = - self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; - base16 = inputs.base16.lib args; - homeManagerIntegration.module = self.homeModules.stylix; - }; - } - ]; - }; + nixosModules = { + default = self.nixosModules.stylix; + stylix = + { pkgs, ... }@args: + { + imports = [ + ../stylix/nixos + { + stylix = { + inherit inputs; + paletteGenerator = + self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; + base16 = inputs.base16.lib args; + homeManagerIntegration.module = self.homeModules.stylix; + }; + } + ]; + }; + }; - homeModules.stylix = - { pkgs, ... }@args: - { - imports = [ - ../stylix/hm - { - stylix = { - inherit inputs; - paletteGenerator = - self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; - base16 = inputs.base16.lib args; - }; - } - ]; - }; + homeModules = { + default = self.homeModules.stylix; + stylix = + { pkgs, ... }@args: + { + imports = [ + ../stylix/hm + { + stylix = { + inherit inputs; + paletteGenerator = + self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; + base16 = inputs.base16.lib args; + }; + } + ]; + }; + }; - darwinModules.stylix = - { pkgs, ... }@args: - { - imports = [ - ../stylix/darwin - { - stylix = { - inherit inputs; - paletteGenerator = - self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; - base16 = inputs.base16.lib args; - homeManagerIntegration.module = self.homeModules.stylix; - }; - } - ]; - }; + darwinModules = { + default = self.darwinModules.stylix; + stylix = + { pkgs, ... }@args: + { + imports = [ + ../stylix/darwin + { + stylix = { + inherit inputs; + paletteGenerator = + self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; + base16 = inputs.base16.lib args; + homeManagerIntegration.module = self.homeModules.stylix; + }; + } + ]; + }; + }; - nixOnDroidModules.stylix = - { pkgs, ... }@args: - { - imports = [ - ../stylix/droid - { - stylix = { - paletteGenerator = - self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; - base16 = inputs.base16.lib args; - homeManagerIntegration.module = self.homeModules.stylix; - }; - } - ]; - }; + nixOnDroidModules = { + default = self.nixOnDroidModules.stylix; + stylix = + { pkgs, ... }@args: + { + imports = [ + ../stylix/droid + { + stylix = { + paletteGenerator = + self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator; + base16 = inputs.base16.lib args; + homeManagerIntegration.module = self.homeModules.stylix; + }; + } + ]; + }; + }; }; }