Add homemanager config, packages and devshell alias

main
jri 9 months ago
parent 8e6671f016
commit 81ff5c36cc

@ -0,0 +1,47 @@
{ config, pkgs, ... }: {
home.username = "{{ctx.username}}";
home.homeDirectory = "{{dirs.home}}";
home.stateVersion = "23.11";
home.packages = with pkgs; [
# core cli tools
nushell
starship
wezterm
helix
zellij
broot
bottom
thefuck
hyperfine
most
# other dev tools
insomnia
# fonts
fontconfig
(nerdfonts.override {
fonts = ["FiraCode"];
})
lexend
joypixels
# nodejs packages
nodejs
biome
nodePackages.typescript-language-server
# java packages
jdk
kotlin
kotlin-language-server
jdt-language-server
gradle
];
fonts.fontconfig.enable = true;
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

@ -0,0 +1,4 @@
{
allowUnfree = true;
joypixels.acceptLicense = true;
}

@ -1,4 +0,0 @@
{pkgs, ... }: {
targets.genericLinux.enable = true;
home.packages = [ pkgs.jdk8 ];
}

@ -12,3 +12,6 @@ alias fuck = with-env {TF_ALIAS: "fuck", PYTHONIOENCODING: "utf-8"} {
{{#if flags.unix}}
alias `shx` = sudo -E helix -c '{{dirs.config}}/helix/config.toml'
{{/if}}
{{#if-installed nix}}
alias devshell = nix develop -c $env.SHELL
{{/if-installed}}

@ -74,5 +74,7 @@ $env.LC_ALL = en_GB.UTF-8
$env.HELIX_RUNTIME = {{dirs.config}}/helix/runtime
{{#if-installed nix}}
if $env.NIX_PATH? != null {
$env.NIX_PATH = $"{{dirs.home}}/.nix-defexpr/channels:($env.NIX_PATH)"
}
{{/if-installed}}

@ -0,0 +1,11 @@
def after_apply_all [] {
if not ('~/.nix-profile/bin/home-manager' | path exists) {
print $"(ansi red)home-manager is not installed(ansi reset)"
return
}
print "Updating with home-manager"
( home-manager switch )
print "Cleaning nix store"
( nix-store --gc )
ignore
}
Loading…
Cancel
Save