move out non-toplevel flake modules from flake.nix

This commit is contained in:
Jörg Thalheim
2023-08-08 14:03:26 +02:00
parent fbd1c3cff4
commit 6d1de943e1
3 changed files with 10 additions and 6 deletions

View File

@@ -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);

View File

@@ -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 { };

View File

@@ -1,4 +1,7 @@
{ ... }: {
{
imports = [
./python-project/flake-module.nix
];
flake.templates = {
new-clan = {
description = "Initialize a new clan flake";