61 lines
1.7 KiB
Nix
61 lines
1.7 KiB
Nix
{ custom, pkgs, ... }:
|
|
let
|
|
unstable = import custom.inputs.nixpkgs-unstable { system = "x86_64-linux"; };
|
|
in
|
|
{
|
|
imports = [
|
|
"${custom.inputs.self}/home-manager/common"
|
|
"${custom.inputs.self}/home-manager/software/ansible"
|
|
(import "${custom.inputs.self}/home-manager/software/emacs" { inherit unstable; })
|
|
"${custom.inputs.self}/home-manager/software/fzf"
|
|
"${custom.inputs.self}/home-manager/software/git"
|
|
"${custom.inputs.self}/home-manager/software/starship"
|
|
(import "${custom.inputs.self}/home-manager/software/vagrant-wsl" { inherit unstable; })
|
|
"${custom.inputs.self}/home-manager/software/vim"
|
|
];
|
|
|
|
programs.git.userEmail = "zweili@contria.com";
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
|
|
home = {
|
|
username = "zweili";
|
|
sessionPath = [ "$HOME/node_modules/.bin" ];
|
|
packages = with pkgs; [
|
|
keychain
|
|
nixpkgs-fmt
|
|
mosh
|
|
];
|
|
};
|
|
nix = {
|
|
package = pkgs.nix;
|
|
settings = {
|
|
connect-timeout = 5;
|
|
log-lines = 25;
|
|
experimental-features = "nix-command flakes";
|
|
fallback = true;
|
|
warn-dirty = false;
|
|
substituters = [
|
|
"https://nix-community.cachix.org"
|
|
"https://cache.nixos.org"
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
];
|
|
};
|
|
};
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
bashrcExtra = ''
|
|
. /home/zweili/.nix-profile/etc/profile.d/nix.sh
|
|
'';
|
|
shellAliases = {
|
|
work-management = "mosh --ssh='ssh -i ~/.ssh/zweili.key' zweili@10.49.0.100 -- tmux new -A -s 0";
|
|
};
|
|
};
|
|
}
|