CrOS/home/handler/common/core/default.nix
2026-01-28 10:31:11 -05:00

47 lines
786 B
Nix

{
inputs,
config,
lib,
pkgs,
hostSpec,
...
}:
let
platform = if hostSpec.isDarwin then "darwin" else "nixos";
in
{
imports = lib.flatten [
(map lib.custom.relativeToRoot [
"modules/common/host-spec.nix"
"modules/home"
])
#./${platform.nix}
./direnv.nix
./git.nix
./tmux.nix
./starship.nix
];
home.packages = builtins.attrValues {
inherit (pkgs)
screen
ouch
;
};
inherit hostSpec;
home = {
username = lib.mkDefault config.hostSpec.username;
homeDirectory = lib.mkDefault config.hostSpec.home;
stateVersion = lib.mkDefault "24.05";
sessionVariables = {
SHELL = "zsh";
TERM = "foot";
TERMINAL = "foot";
VISUAL = "nvim";
EDITOR = "nvim";
};
};
}