diff --git a/configs/flake-parts/home-manager.nix b/configs/flake-parts/home-manager.nix index 44318157..f1a1ec92 100644 --- a/configs/flake-parts/home-manager.nix +++ b/configs/flake-parts/home-manager.nix @@ -46,6 +46,14 @@ inputs.sops-nix.homeManagerModules.sops inputs.nix-index-database.hmModules.nix-index + # Setting up Bahaghari. + ({ config, lib, pkgs, ... }: { + imports = [ inputs.self.homeModules."bahaghari/tinted-theming" ]; + + _module.args.bahaghariLib = + import inputs.self.bahaghariLib { inherit pkgs; }; + }) + # The default shared config for our home-manager configurations. This # is also to be used for sharing modules among home-manager users from # NixOS configurations with `nixpkgs.useGlobalPkgs` set to `true` so diff --git a/configs/flake-parts/nixos.nix b/configs/flake-parts/nixos.nix index e6933d76..cc265958 100644 --- a/configs/flake-parts/nixos.nix +++ b/configs/flake-parts/nixos.nix @@ -87,6 +87,14 @@ inputs.sops-nix.nixosModules.sops inputs.disko.nixosModules.disko + # Setting up Bahaghari. + ({ config, lib, pkgs, ... }: { + imports = [ inputs.self.nixosModules."bahaghari/tinted-theming" ]; + + _module.args.bahaghariLib = + import inputs.self.bahaghariLib { inherit pkgs; }; + }) + # Bring our own teeny-tiny snippets of configurations. defaultNixConf ../../modules/nixos/profiles/generic.nix diff --git a/configs/flake-parts/nixvim.nix b/configs/flake-parts/nixvim.nix index d7d7fb22..9571fc08 100644 --- a/configs/flake-parts/nixvim.nix +++ b/configs/flake-parts/nixvim.nix @@ -1,4 +1,4 @@ -{ ... }: +{ inputs, ... }: { setups.nixvim.configs = { @@ -21,6 +21,16 @@ }; }; + setups.nixvim.sharedModules = [ + # Setting up Bahaghari. + ({ config, lib, pkgs, ... }: { + imports = [ inputs.self.nixvimModules."bahaghari/tinted-theming" ]; + + _module.args.bahaghariLib = + import inputs.self.bahaghariLib { inherit pkgs; }; + }) + ]; + flake = { nixvimModules.default = ../../modules/nixvim; };