refactor(base profile): move base profile configurations into modules

This commit is contained in:
ooks-io 2024-04-01 15:00:37 +13:00
parent 51e9493c62
commit 692b18c0f6
7 changed files with 124 additions and 63 deletions

View file

@ -0,0 +1,29 @@
{ lib, config, ... }:
let
cfg = config.homeModules.config.home;
in
{
config = lib.mkIf cfg.enable {
programs.home-manager.enable = true;
home = {
username = lib.mkDefault "ooks";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "22.05";
sessionPath = [ "${config.home.homeDirectory}/.local/bin" ];
sessionVariables = {
TZ = "Pacific/Auckland";
};
};
# to save space
manual = {
html.enable = false;
json.enable = false;
manpages.enable = true;
};
};
}