diff --git a/flake.nix b/flake.nix index cb5feadd..c52398e1 100644 --- a/flake.nix +++ b/flake.nix @@ -25,14 +25,9 @@ ./devShell.nix ./formatter.nix ./templates/flake-module.nix - ./templates/python-project/flake-module.nix ./pkgs/flake-module.nix - ./pkgs/clan-cli/flake-module.nix - ./pkgs/installer/flake-module.nix - ./pkgs/ui/flake-module.nix - ./lib/flake-module.nix ({ self, lib, ... }: { flake.nixosModules = lib.mapAttrs (_: nix: { imports = [ nix ]; }) (self.lib.findNixFiles ./nixosModules); diff --git a/pkgs/flake-module.nix b/pkgs/flake-module.nix index d0a2f061..d0d9aae1 100644 --- a/pkgs/flake-module.nix +++ b/pkgs/flake-module.nix @@ -1,4 +1,10 @@ { ... }: { + imports = [ + ./clan-cli/flake-module.nix + ./installer/flake-module.nix + ./ui/flake-module.nix + ]; + perSystem = { pkgs, config, ... }: { packages = { tea-create-pr = pkgs.callPackage ./tea-create-pr { }; diff --git a/templates/flake-module.nix b/templates/flake-module.nix index 22b1070d..a7149430 100644 --- a/templates/flake-module.nix +++ b/templates/flake-module.nix @@ -1,4 +1,7 @@ -{ ... }: { +{ + imports = [ + ./python-project/flake-module.nix + ]; flake.templates = { new-clan = { description = "Initialize a new clan flake";