nixos: clean up cache in home

This commit is contained in:
Maciej Jur 2024-07-27 14:03:17 +02:00
parent 2985a4e744
commit e47eaa32a3
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
4 changed files with 23 additions and 6 deletions

View file

@ -55,7 +55,8 @@ in
i18n = {
defaultLocale = "en_US.UTF-8";
inputMethod = {
enabled = "fcitx5";
enable = true;
type = "fcitx5";
fcitx5 = {
waylandFrontend = true;
plasma6Support = true;

View file

@ -1,11 +1,11 @@
{ pkgs, config, ... }:
{
home.sessionVariables = {
ELAN_HOME = "${config.xdg.cacheHome}/elan";
};
home.packages = with pkgs; [
elan
];
# home.sessionVariables = {
# ELAN_HOME = "${config.xdg.cacheHome}/elan";
# };
}

View file

@ -1,6 +1,10 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
home.sessionVariables = {
OPAMROOT = "${config.xdg.cacheHome}/opam";
};
home.packages = with pkgs; [
ocaml
ocamlformat

View file

@ -0,0 +1,12 @@
{ pkgs, config, ... }:
{
home.sessionVariables = {
CARGO_HOME = "${config.xdg.cacheHome}/cargo";
RUSTUP_HOME = "${config.xdg.cacheHome}/rustup";
};
home.packages = with pkgs; [
rust-analyzer
];
}