Files
nixos/home/home.nix
T

90 lines
1.7 KiB
Nix
Raw Normal View History

2024-10-19 01:19:59 -05:00
{
pkgs,
lib,
host ? "most",
top,
2025-06-10 23:20:00 -05:00
username,
2024-10-19 01:19:59 -05:00
...
}:
2025-06-10 23:20:00 -05:00
let
homeDirectory =
if pkgs.stdenv.hostPlatform.isDarwin then
"/Users/${username}"
else if username == "root" then
"/root"
else
"/home/${username}";
in
2022-12-24 00:36:36 -06:00
{
imports = [
2025-08-19 15:09:33 -05:00
top.nixvimunstable.homeModules.nixvim
2025-06-10 14:28:46 -05:00
top.self.modules.homeManagerModule
2026-04-08 08:00:35 -05:00
top.agenix.homeManagerModules.default
2025-06-10 14:28:46 -05:00
./baseline
2025-11-02 22:59:43 -06:00
]
2026-04-17 18:42:41 +00:00
++ lib.optionals (builtins.pathExists ./hosts/${host}/default.nix) [ ./hosts/${host} ];
2022-04-29 10:58:31 -05:00
2026-04-08 08:00:35 -05:00
age = {
identityPaths = [ "${homeDirectory}/.ssh/id_ed25519" ];
};
2025-06-10 23:20:00 -05:00
home = {
inherit homeDirectory username;
2025-06-10 14:28:46 -05:00
2025-06-10 23:20:00 -05:00
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";
};
2025-06-10 14:28:46 -05:00
2025-06-11 13:26:05 -05:00
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;
2026-02-19 19:49:28 -06:00
shellWrapperName = "y";
2025-06-11 13:26:05 -05:00
};
2025-06-10 14:28:46 -05:00
};
2022-04-18 11:38:06 -05:00
}