2023-03-07 19:24:57 +00:00
|
|
|
{ pkgs, config, lib, ... }: {
|
|
|
|
imports = [ ../../common/home_manager/helix.nix ];
|
2023-02-10 17:34:46 +00:00
|
|
|
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.users.agatha = {
|
|
|
|
home.username = "agatha";
|
|
|
|
home.homeDirectory = "/home/agatha";
|
|
|
|
home.stateVersion = config.system.stateVersion;
|
2023-02-18 14:36:17 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
bat
|
|
|
|
btop
|
2023-03-06 19:37:55 +00:00
|
|
|
choose
|
2023-02-18 14:36:17 +00:00
|
|
|
exa
|
2023-03-26 16:06:30 +00:00
|
|
|
fd
|
2023-02-18 14:36:17 +00:00
|
|
|
fzf
|
|
|
|
gnupg
|
|
|
|
ouch
|
|
|
|
ripgrep
|
|
|
|
tealdeer
|
|
|
|
zoxide
|
|
|
|
];
|
2023-02-10 17:34:46 +00:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Agatha V. Lovelace";
|
|
|
|
userEmail = "agatha@technogothic.net";
|
|
|
|
signing.key = "33185E0D62AD7294379947D4C37ABADDB597BCA1";
|
|
|
|
signing.signByDefault = true;
|
|
|
|
aliases = {
|
|
|
|
plog =
|
|
|
|
"log --graph --pretty=format:'%h -%d %s -%an %n' --abbrev-commit --date=relative --branches";
|
|
|
|
pfusch = "push --force-with-lease";
|
|
|
|
stat = "diff --compact-summary";
|
2023-03-06 19:37:55 +00:00
|
|
|
undo = "reset --soft HEAD~";
|
2023-05-21 10:23:14 +00:00
|
|
|
unstage = "restore --staged";
|
2023-02-10 17:34:46 +00:00
|
|
|
};
|
2023-02-22 20:27:12 +00:00
|
|
|
extraConfig = {
|
|
|
|
init = { defaultBranch = "mistress"; };
|
|
|
|
core = { editor = "hx"; };
|
2023-03-10 22:23:43 +00:00
|
|
|
rebase.autosquash = true;
|
|
|
|
pull.rebase = true;
|
2023-02-22 20:27:12 +00:00
|
|
|
};
|
2023-02-10 17:34:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
starship = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
add_newline = false;
|
|
|
|
format = lib.concatStrings [
|
|
|
|
"[$hostname](bold red)"
|
|
|
|
"$character"
|
|
|
|
"$directory"
|
|
|
|
];
|
|
|
|
right_format =
|
|
|
|
lib.concatStrings [ "$git_branch" " " "$cmd_duration" ];
|
|
|
|
character = {
|
|
|
|
success_symbol = "";
|
|
|
|
error_symbol = "[ ⇣](purple)";
|
|
|
|
};
|
|
|
|
directory = {
|
|
|
|
truncation_length = 2;
|
|
|
|
fish_style_pwd_dir_length = 1;
|
|
|
|
read_only = " ";
|
|
|
|
style = "cyan";
|
|
|
|
read_only_style = "cyan";
|
|
|
|
};
|
|
|
|
cmd_duration = { min_time = 10000; };
|
|
|
|
git_branch = {
|
|
|
|
format = "$symbol $branch";
|
|
|
|
symbol = "";
|
|
|
|
};
|
|
|
|
hostname = {
|
|
|
|
ssh_only = false;
|
|
|
|
format = "$hostname";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fish = {
|
|
|
|
enable = true;
|
2023-02-18 14:36:17 +00:00
|
|
|
interactiveShellInit = builtins.readFile (pkgs.fetchurl {
|
|
|
|
url =
|
|
|
|
"https://git.lain.faith/sorceress/dotfiles/raw/commit/80be649e9663e3db67041192c714329e20b10cc9/.config/fish/config.fish";
|
|
|
|
sha256 = "sha256-ZZCTXnRZfotksiJj7iVJnLz+XnWHTlIsZzv3gbbZoRQ=";
|
|
|
|
});
|
2023-02-10 17:34:46 +00:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "fzf";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "jethrokuan";
|
|
|
|
repo = "fzf";
|
|
|
|
rev = "479fa67d7439b23095e01b64987ae79a91a4e283";
|
|
|
|
sha256 = "0k6l21j192hrhy95092dm8029p52aakvzis7jiw48wnbckyidi6v";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "pisces";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "laughedelic";
|
|
|
|
repo = "pisces";
|
|
|
|
rev = "e45e0869855d089ba1e628b6248434b2dfa709c4";
|
|
|
|
sha256 = "073wb83qcn0hfkywjcly64k6pf0d7z5nxxwls5sa80jdwchvd2rs";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-03-06 19:37:55 +00:00
|
|
|
|
|
|
|
command-not-found.enable = false;
|
|
|
|
nix-index = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
};
|
2023-02-10 17:34:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|