From afbd5cd074307e6af2e457eac0edef5f1e53833d Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 23 Feb 2024 18:14:39 +0800 Subject: [PATCH] bahaghari: init flake and devshell Even if that devshell is not really usable. --- subprojects/bahaghari/flake.nix | 29 +++++++++++++++++++++++++++++ subprojects/bahaghari/shell.nix | 7 +++++++ 2 files changed, 36 insertions(+) create mode 100644 subprojects/bahaghari/flake.nix create mode 100644 subprojects/bahaghari/shell.nix diff --git a/subprojects/bahaghari/flake.nix b/subprojects/bahaghari/flake.nix new file mode 100644 index 00000000..929be168 --- /dev/null +++ b/subprojects/bahaghari/flake.nix @@ -0,0 +1,29 @@ +{ + description = "Specialized set of Nix modules for generating and applying themes."; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = inputs@{ self, nixpkgs, ... }: + let systems = inputs.flake-utils.lib.defaultSystems; + 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; + }; +} diff --git a/subprojects/bahaghari/shell.nix b/subprojects/bahaghari/shell.nix new file mode 100644 index 00000000..b3b8623b --- /dev/null +++ b/subprojects/bahaghari/shell.nix @@ -0,0 +1,7 @@ +{ pkgs ? import { } }: + +with pkgs; + +mkShell { + inputsFrom = [ nix ]; +}