Add homemanager config, packages and devshell alias
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 ];
|
||||
}
|
@ -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…
Reference in New Issue