86 lines
2.0 KiB
Nix
86 lines
2.0 KiB
Nix
{
|
|
config,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ "${inputs.self}/home-manager/profiles/headless.nix" ];
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
|
|
home = {
|
|
activation.report-changes = config.lib.dag.entryAnywhere ''
|
|
${pkgs.nix}/bin/nix store diff-closures $oldGenPath $newGenPath || true
|
|
'';
|
|
sessionPath = [ "$HOME/node_modules/.bin" ];
|
|
sessionVariables = {
|
|
NIX_PATH = "nixpkgs=${inputs.nixpkgs}";
|
|
PATH = "$PATH:$HOME/.local/bin";
|
|
};
|
|
packages = with pkgs; [
|
|
bottom
|
|
gyre-fonts
|
|
highlight
|
|
keychain
|
|
killall
|
|
mosh
|
|
ncdu
|
|
nix-tree
|
|
nmon
|
|
tree
|
|
unzip
|
|
wget
|
|
];
|
|
};
|
|
nix = {
|
|
package = pkgs.nix;
|
|
settings = {
|
|
trusted-users = [
|
|
"root"
|
|
"@sudo"
|
|
];
|
|
connect-timeout = 5;
|
|
log-lines = 25;
|
|
experimental-features = "nix-command flakes repl-flake";
|
|
fallback = true;
|
|
warn-dirty = false;
|
|
substituters = [
|
|
"https://nix-community.cachix.org"
|
|
"https://cache.nixos.org"
|
|
"https://devenv.cachix.org"
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
|
];
|
|
};
|
|
};
|
|
|
|
fonts.fontconfig.enable = true;
|
|
programs = {
|
|
az-ansible.enable = true;
|
|
az-emacs.enable = true;
|
|
az-fzf.enable = true;
|
|
az-git = {
|
|
enable = true;
|
|
userEmail = "zweili@contria.com";
|
|
};
|
|
az-hunspell.enable = true;
|
|
az-starship.enable = true;
|
|
az-tmux.enable = true;
|
|
bash = {
|
|
shellAliases = {
|
|
work-management = "mosh --ssh='ssh -i ~/.ssh/zweili.key' zweili@10.49.0.100 -- tmux new -A -s 0";
|
|
work-vm = ''ssh andreas@localhost -p 2222 -t "$@" "tmux new -A -s 0"'';
|
|
hm-rebuild = "home-manager switch";
|
|
};
|
|
};
|
|
};
|
|
services.ssh-agent.enable = true;
|
|
}
|