Skip to content

Commit

Permalink
home config + test enable on ashokan
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikvtcodes committed Jan 7, 2025
1 parent 50ca49b commit 35140a5
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
3 changes: 3 additions & 0 deletions home/henrikvt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Home Manager / dotfiles

I used to use [this dotfiles repo](https://github.com/denysdovhan/dotfiles) but finally decided to convert to nix. A lot of my settings are based on this config.
57 changes: 56 additions & 1 deletion home/henrikvt/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,25 @@
"command-not-found"
"vscode"
"nvm"
"history-substring-search"
"tailscale"
"bun"
"fnm"
"fzf"
"zoxide"
];
};

zplug = {
enable = true;
plugins = [
{
name = "djui/alias-tips";
}
{
name = "hlissner/zsh-autopair";
}
];
};
};

# Prompt
Expand All @@ -92,6 +103,50 @@
lfs.enable = true;
userName = "Henrik VT";
userEmail = "commits@henrikvt.com";
aliases = {
a = "add";
ua = "reset HEAD";
p = "push";
c = "commit";
b = "branch";
co = "checkout";
cb = "checkout -b";
sw = "switch";
swc = "switch -c";
ap = "add -p";
ca = "commit -a";
cm = "commit -m";
cam = "commit -am";
amend = "commit --amend";
s = "status -sb";
l = "log --all --graph --decorate --oneline";
};
extraConfig = ''
[init]
defaultBranch = main
[color]
ui = auto
[color "diff"]
meta = white bold
frag = cyan bold
old = red bold
new = green bold
[core]
editor = vim
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
ignorecase = false
compression = 0
[pull]
rebase = false
[protocol "file"]
allow = always
'';
};
lazygit.enable = true;
gh = {
Expand Down
2 changes: 2 additions & 0 deletions machines/nixos/ashokan/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
mastodonSmtpPassword.file = ../../../secrets/mastodonSmtpPassword.age;
};

home.henrikvt.enable = true;

# ======================== DO NOT CHANGE THIS ========================
system.stateVersion = "23.11";
# ======================== DO NOT CHANGE THIS ========================
Expand Down

0 comments on commit 35140a5

Please sign in to comment.