From 469e5194ccf1fa506c1c8fc4b6010eeefbf85d1c Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 24 Feb 2024 10:36:28 +0800 Subject: [PATCH] bahaghari: allow non-flakes usage --- subprojects/bahaghari/default.nix | 18 ++++++++++++++++++ subprojects/bahaghari/flake.nix | 16 +--------------- 2 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 subprojects/bahaghari/default.nix diff --git a/subprojects/bahaghari/default.nix b/subprojects/bahaghari/default.nix new file mode 100644 index 00000000..163c171b --- /dev/null +++ b/subprojects/bahaghari/default.nix @@ -0,0 +1,18 @@ +# This is just kept for future compatiblity in case we require pkgs or something. +{ }: + +{ + nixosModules = { + "bahaghari/tinted-theming" = ./modules/tinted-theming; + }; + + homeModules = { + "bahaghari/tinted-theming" = ./modules/tinted-theming; + }; + + nixvimModules = { + "bahaghari/tinted-theming" = ./modules/tinted-theming; + }; + + bahaghariLib = ./lib; +} diff --git a/subprojects/bahaghari/flake.nix b/subprojects/bahaghari/flake.nix index 929be168..58044089 100644 --- a/subprojects/bahaghari/flake.nix +++ b/subprojects/bahaghari/flake.nix @@ -11,19 +11,5 @@ in inputs.flake-utils.lib.eachSystem systems (system: { devShells.default = import ./shell.nix { pkgs = import nixpkgs { inherit system; }; }; - }) // { - nixosModules = { - "bahaghari/tinted-theming" = ./modules/tinted-theming; - }; - - homeModules = { - "bahaghari/tinted-theming" = ./modules/tinted-theming; - }; - - nixvimModules = { - "bahaghari/tinted-theming" = ./modules/tinted-theming; - }; - - bahaghariLib = ./lib; - }; + }) // import ./default.nix { }; }