Files
nixos/home/home.nix
Greg Hellings 2a81d137a8
buildbot/nix-eval Build done.
buildbot/nix-build gitea:greg/nixos#checks.aarch64-darwin Build done.
buildbot/nix-build gitea:greg/nixos#checks.x86_64-linux Build done.
buildbot/nix-build gitea:greg/nixos#checks.aarch64-linux Build done.
buildbot/nix-build Build done.
chore: add linode to new home
2026-04-17 18:42:41 +00:00

90 lines
1.7 KiB
Nix

{
pkgs,
lib,
host ? "most",
top,
username,
...
}:
let
homeDirectory =
if pkgs.stdenv.hostPlatform.isDarwin then
"/Users/${username}"
else if username == "root" then
"/root"
else
"/home/${username}";
in
{
imports = [
top.nixvimunstable.homeModules.nixvim
top.self.modules.homeManagerModule
top.agenix.homeManagerModules.default
./baseline
]
++ lib.optionals (builtins.pathExists ./hosts/${host}/default.nix) [ ./hosts/${host} ];
age = {
identityPaths = [ "${homeDirectory}/.ssh/id_ed25519" ];
};
home = {
inherit homeDirectory username;
packages = with pkgs; [
copier
diffutils
findutils
gh
git
gnupatch
hms
btop
inetutils
jq
nano
nix-prefetch
nmap
openssl
setup-ssh
tmux
tree
unzip
wget
zip
];
stateVersion = "25.05";
};
programs = {
broot = {
enable = true;
enableNushellIntegration = true;
enableZshIntegration = pkgs.stdenv.hostPlatform.isDarwin;
};
keychain = {
enable = true;
enableNushellIntegration = true;
enableZshIntegration = pkgs.stdenv.hostPlatform.isDarwin;
keys = [
"id_rsa"
"id_ed25519"
"personal_ed25519"
];
};
tmux = {
enable = true;
keyMode = "vi";
terminal = "xterm-256color";
customPaneNavigationAndResize = true;
extraConfig = (lib.strings.concatStringsSep "\n" [ "bind P paste-buffer" ]);
};
yazi = {
enable = true;
enableNushellIntegration = true;
enableZshIntegration = pkgs.stdenv.hostPlatform.isDarwin;
shellWrapperName = "y";
};
};
}