nixos/home-manager/profiles/work-wsl.nix

58 lines
1.5 KiB
Nix
Raw Normal View History

2023-06-07 20:14:44 +02:00
{ inputs, pkgs, ... }:
2021-11-22 14:48:47 +01:00
{
2021-11-16 11:43:02 +01:00
imports = [
2023-06-07 20:27:13 +02:00
"${inputs.self}/home-manager/modules"
2023-06-07 20:14:44 +02:00
"${inputs.self}/home-manager/software/ansible"
2023-06-08 13:40:03 +02:00
"${inputs.self}/home-manager/software/emacs"
2023-06-07 20:14:44 +02:00
"${inputs.self}/home-manager/software/fzf"
"${inputs.self}/home-manager/software/git"
"${inputs.self}/home-manager/software/starship"
2023-06-08 13:40:03 +02:00
"${inputs.self}/home-manager/software/vagrant-wsl"
2023-06-07 20:14:44 +02:00
"${inputs.self}/home-manager/software/vim"
2022-01-20 11:03:38 +01:00
];
2021-11-22 14:48:47 +01:00
programs.git.userEmail = "zweili@contria.com";
2022-04-01 11:31:02 +02:00
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
2023-05-29 14:58:49 +02:00
home = {
username = "zweili";
sessionPath = [ "$HOME/node_modules/.bin" ];
2023-05-31 13:51:33 +02:00
packages = with pkgs; [
2023-05-29 14:58:49 +02:00
keychain
nixpkgs-fmt
mosh
];
};
2022-12-01 16:10:09 +01:00
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="
];
};
};
2021-11-22 14:48:47 +01:00
2021-11-22 18:33:36 +01:00
programs.bash = {
enable = true;
bashrcExtra = ''
2023-02-10 09:06:07 +01:00
. /home/zweili/.nix-profile/etc/profile.d/nix.sh
2021-11-22 18:33:36 +01:00
'';
2023-05-25 09:04:10 +02:00
shellAliases = {
work-management = "mosh --ssh='ssh -i ~/.ssh/zweili.key' zweili@10.49.0.100 -- tmux new -A -s 0";
};
2021-11-22 18:33:36 +01:00
};
2021-11-16 11:43:02 +01:00
}