Instead we can use hjem.extraModules inside the nixos/darwin classes.
It's much cleaner and allows us to remove a lot of conditional configs because usually all hjem configs are given to all hosts.
BBZLZXECSZQF7GI5J2XNDH7LXDB2FELEHUVKAVP4OSIG4RXWVWTAC Y3M6WEWQUH2DHADCTUUIMNBJOLWITRB7M4DDA4XZ7SNOAPGA4ZSAC D34IHX4LZP3KRI7PNXYOMJS66EIESOXLUJNPALTBCMRMQA5EOVCAC 7HAYHRJM7SXHXAG4D63PWVLKQXME3HET6HBECYA6SZ7CIP3F4LKAC UDMIMNC47TNUHDGEKHD43MTZKGXVHZANX233UVMMS2AMUV53X2KQC YVII7NUI5Z6DPUDQZG2ZVJ6QNQRCEUYX5547IYCMPZI7GJ3GDZQAC AGKZEZ3K2L57HMRD43CDF46IQT6SQSHKCCDNXMO7JIYKB67JRCWAC 6KKLYLEP3IUF3NWXB6OO5C2X75S4U5OK7E2L7HIWWC3P7FG62EZAC V2RX2Y7VB7Y3BHX3ALK4GTCMFJATMLCKIAT4U3XCYZZZIUBIIZ5QC QT43YZLQI5ZQSNKIZSESWRM6XUORC3EYWHQ2F4JPZHNPRANUNABQC MQT74AV47PUYNCX27OMFK6BFN7PP4DX46JAACN2EPRYXUXV7EL3AC FCPPR3TO5BT4TD4JLHSN3RQUKLW6KUJHBEZNR6DKTGG22X3252BAC xdg.config.files."jj/config.toml".source = toml.generate "jj-config.toml" jjConfig;xdg.config.files."jjui/config.toml".source = toml.generate "jjui-config.toml" jjuiConfig;
hjem.extraModules = singleton {xdg.config.files."jj/config.toml".source = toml.generate "jj-config.toml" jjConfig;xdg.config.files."jjui/config.toml".source = toml.generate "jjui-config.toml" jjuiConfig;};
hjemModules = attrValues inputs.self.modules.hjem;# Perhaps we shouldn't do ^this^ and import the necessary modules per host?# This would eliminate the need for a lot of conditional configs.
hjemModules = inputs.self.modules.hjem |> attrValues;
hjemModules = attrValues inputs.self.modules.hjem;# Perhaps we shouldn't do ^this^ and import the necessary modules per host?# This would eliminate the need for a lot of conditional configs.
hjemModules = inputs.self.modules.hjem |> attrValues;
{flake.modules.hjem.env ={ pkgs, ... }:{environment.sessionVariables = {
letenvBase ={ pkgs, lib, ... }:letinherit (lib.lists) singleton;variables = {
# TODO: Add sessionPath equivalent in hjem?# home-manager.sharedModules = [{# home.sessionPath = [# "$HOME/.local/bin"# "$HOME/.cargo/bin"# "$HOME/.bun/bin"# ];# }];
hjem.extraModules = singleton {environment.sessionVariables = variables;# TODO: Add sessionPath equivalent in hjem?# home-manager.sharedModules = [{# home.sessionPath = [# "$HOME/.local/bin"# "$HOME/.cargo/bin"# "$HOME/.bun/bin"# ];# }];};