[home] split out home-manager from configuration

This commit is contained in:
2024-06-28 03:04:24 +08:00
parent 28810c407b
commit 6f9de6434c
8 changed files with 23 additions and 18 deletions
+39
View File
@@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
lldb
clang-tools
python312
python312Packages.ipython
];
programs.fish.shellAliases = {
"ipy" = "ipython --no-confirm-exit";
};
programs.direnv.enable = true;
programs.fish.shellInit = ''
direnv hook fish | source
'';
programs.git = {
enable = true;
lfs.enable = true;
userName = "Origami404";
userEmail = "Origami404@foxmail.com";
extraConfig = {
user.signingKey = "5C7FCAFBC961E2E312B47FEC76447D4671CB3CC0";
core.autocrlf = "input";
push.autoSetupRemote = true;
pull.rebase = true;
init.defaultBranch = "main";
};
aliases = {
"l" = "log --date-order --graph --pretty=\"format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset\"";
};
};
programs.vscode = {
enable = true;
package = pkgs.vscode.fhs;
};
}