configuration.nix/flake-modules/home-modules.nix
Jalil David Salamé Messina c1309a5d43
All checks were successful
/ check (push) Successful in 8s
/ check-renovaterc (push) Successful in 2s
/ build-packages (push) Successful in 14s
/ build-vm (push) Successful in 1s
/ report-size (push) Successful in 4s
refactor: don't include the whole modules
Instead only import the nixos/hm/nixvim module.

This _should_ reduce rebuilds.
2025-03-21 17:11:23 +01:00

31 lines
712 B
Nix

{ self, inputs, ... }:
{
# FIXME(25.05): this version of HM should have the flake module
# imports = [ inputs.home-manager.flakeModules.home-manager ];
flake.homeModules =
let
defaultModules = [
inputs.nixvim.homeManagerModules.nixvim
self.nixvimModules.homeManager
../modules/hm
];
nixos = {
imports = defaultModules;
};
standalone = {
imports = defaultModules ++ [
inputs.stylix.homeManagerModules.stilyx
(
{ config, ... }:
{
stylix.image = config.jhome.sway.background;
}
)
];
};
in
{
inherit standalone nixos;
};
}