refactor(base profile): move base profile configurations into modules
This commit is contained in:
parent
51e9493c62
commit
692b18c0f6
7 changed files with 124 additions and 63 deletions
29
home/modules/config/home/default.nix
Normal file
29
home/modules/config/home/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue