Merge home manager config.

This commit is contained in:
2024-09-13 11:04:13 +01:00
parent 4e24ac988f
commit 2638e596e9
5 changed files with 111 additions and 42 deletions

20
home/default.nix Normal file
View File

@@ -0,0 +1,20 @@
{ pkgs, ... }:
let
packages = import ./packages.nix { inherit pkgs; };
in {
home = {
inherit packages;
stateVersion = "24.05"; # TODO: unify this with the references in flake.nix:inputs
sessionVariables = {
MOSH_SERVER_NETWORK_TMOUT = 604800;
NOMAD_ADDR = "http://nomad.service.consul:4646";
};
shellAliases = {
reload-home-manager-config = "home-manager switch --flake ${builtins.toString ./.}";
};
};
programs = import ./programs.nix;
}

12
home/packages.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs }:
let
nixTools = with pkgs; [
git
home-manager
mosh
tmux
vim
zsh
];
in nixTools

64
home/programs.nix Normal file
View File

@@ -0,0 +1,64 @@
{
git = {
enable = true;
userEmail = "petru@paler.net";
userName = "Petru Paler";
};
home-manager = {
enable = true;
};
less.enable = true;
neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
};
tmux = {
enable = true;
prefix = "C-t";
terminal = "screen-256color";
historyLimit = 20000;
keyMode = "vi";
extraConfig = ''
set -g status-left ""
set -g status-right ""
'';
};
zsh = {
enable = true;
history = {
save = 1000000;
size = 1000000;
};
prezto = {
enable = true;
pmodules = [
"gnu-utility"
"environment"
"terminal"
"editor"
"history"
"directory"
"spectrum"
"utility"
"completion"
"syntax-highlighting"
"prompt"
];
gnuUtility.prefix = "g";
prompt.theme = "pure";
utility.safeOps = false;
syntaxHighlighting.highlighters = [
"main"
"brackets"
"pattern"
"root"
];
};
};
}