feat: initial commit
This commit is contained in:
commit
b802ff49ab
454 files changed
+52429
No files matched your search
@@ -0,0 +1,84 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home.username = "johannes";
|
||||
home.homeDirectory = if pkgs.stdenv.isDarwin then "/Users/johannes" else "/home/johannes";
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
curl
|
||||
wget
|
||||
neovim
|
||||
ripgrep
|
||||
fd
|
||||
nushell
|
||||
starship
|
||||
zoxide
|
||||
lazygit
|
||||
fastfetch
|
||||
atuin
|
||||
zellij
|
||||
unp
|
||||
carapace
|
||||
bun
|
||||
nodejs
|
||||
pipx
|
||||
python3
|
||||
uv
|
||||
rustup
|
||||
cargo-binstall
|
||||
];
|
||||
|
||||
home.file = {
|
||||
".config" = {
|
||||
source = ./config;
|
||||
recursive = true;
|
||||
};
|
||||
".local/share" = {
|
||||
source = ./local_share;
|
||||
recursive = true;
|
||||
};
|
||||
".local/bin" = {
|
||||
source = ./local_bin;
|
||||
recursive = true;
|
||||
};
|
||||
".agents" = {
|
||||
source = ./agents;
|
||||
recursive = true;
|
||||
};
|
||||
".pi" = {
|
||||
source = ./pi;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
|
||||
age.identityPaths = [ "${config.home.homeDirectory}/.config/age/keys.txt" ];
|
||||
age.secrets."git_config" = {
|
||||
file = ./secrets/git_config.age;
|
||||
path = "${config.home.homeDirectory}/.config/git/config";
|
||||
};
|
||||
age.secrets."jj_config" = {
|
||||
file = ./secrets/jj_config.age;
|
||||
path = "${config.home.homeDirectory}/.config/jj/config.toml";
|
||||
};
|
||||
|
||||
home.activation.installFonts = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
mkdir -p "$HOME/Library/Fonts"
|
||||
cp ${./fonts}/*.otf "$HOME/Library/Fonts/"
|
||||
else
|
||||
mkdir -p "$HOME/.local/share/fonts"
|
||||
cp ${./fonts}/*.otf "$HOME/.local/share/fonts/"
|
||||
${pkgs.fontconfig}/bin/fc-cache -f -v "$HOME/.local/share/fonts"
|
||||
fi
|
||||
'';
|
||||
|
||||
home.activation.cloneNvim = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if [ ! -d "$HOME/.config/nvim" ]; then
|
||||
${pkgs.git}/bin/git clone https://github.com/jokresner/nvim "$HOME/.config/nvim"
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
Reference in new issue
Block a user