Set up more persistence paths
This commit is contained in:
parent
74191baf37
commit
3d8ee6ad0f
|
@ -1,4 +1,4 @@
|
||||||
{
|
{ config, ... }: {
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
programs.direnv.nix-direnv.enable = true;
|
programs.direnv.nix-direnv.enable = true;
|
||||||
|
|
||||||
|
@ -8,4 +8,8 @@
|
||||||
# No more usesless logs
|
# No more usesless logs
|
||||||
DIRENV_LOG_FORMAT = "";
|
DIRENV_LOG_FORMAT = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
satellite.persistence.at.state.apps.direnv.directories = [
|
||||||
|
"${config.xdg.dataHome}/direnv/allow"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
{ upkgs, lib, ... }: {
|
{ pkgs, lib, ... }:
|
||||||
# REASON: not yet in nixpkgs-stable
|
let package = pkgs.eza;
|
||||||
home.packages = [ upkgs.eza ];
|
in
|
||||||
|
{
|
||||||
|
home.packages = [ package ];
|
||||||
|
|
||||||
# TODO: generalize alias creation to all shells
|
# TODO: generalize alias creation to all shells
|
||||||
programs.fish.shellAliases =
|
programs.fish.shellAliases =
|
||||||
let eza = lib.getExe upkgs.eza;
|
let eza = lib.getExe package;
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
ls = "${eza} --icons --long";
|
ls = "${eza} --icons --long";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -30,4 +30,9 @@
|
||||||
|
|
||||||
interactiveShellInit = builtins.readFile ./config.fish;
|
interactiveShellInit = builtins.readFile ./config.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
satellite.persistence.at.state.apps.fish.directories = [
|
||||||
|
"${config.xdg.dataHome}/fish"
|
||||||
|
"${config.xdg.dataHome}/z" # The z fish plugin
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,4 +35,8 @@ in
|
||||||
source ${base16-tmux}
|
source ${base16-tmux}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
satellite.persistence.at.state.apps.tmux.directories = [
|
||||||
|
".tmux"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,34 +15,38 @@
|
||||||
];
|
];
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ Rust
|
# {{{ Rust
|
||||||
satellite.persistence.at.cache.apps.Rust.directories = [
|
satellite.persistence.at.cache.apps.rust.directories = [
|
||||||
#".cargo"
|
".cargo"
|
||||||
#".rustup"
|
".rustup"
|
||||||
];
|
];
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ Purescript
|
# {{{ Purescript
|
||||||
satellite.persistence.at.cache.apps.Purescript.directories = [
|
satellite.persistence.at.cache.apps.purescript.directories = [
|
||||||
#"${config.xdg.cacheHome}/spago"
|
"${config.xdg.dataHome}/purescript"
|
||||||
|
"${config.xdg.cacheHome}/spago"
|
||||||
];
|
];
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ Nodejs
|
# {{{ Nodejs
|
||||||
satellite.persistence.at.cache.apps.Node.directories = [
|
satellite.persistence.at.cache.apps.nodejs = {
|
||||||
#"${config.xdg.cacheHome}/yarn"
|
files = [
|
||||||
#"${config.xdg.dataHome}/pnpm"
|
# Yarn auto-generated file
|
||||||
];
|
".yarnrc"
|
||||||
# }}}
|
];
|
||||||
# {{{ Shell stuff
|
|
||||||
satellite.persistence.at.cache.apps.Shell.directories = [
|
directories = [
|
||||||
#"${config.xdg.dataHome}/fish"
|
# Node & npm
|
||||||
#"${config.xdg.dataHome}/z" # The z fish plugin
|
"${config.xdg.cacheHome}/node-gyp"
|
||||||
#"${config.xdg.dataHome}/direnv/allow"
|
".npm"
|
||||||
#".tmux"
|
|
||||||
];
|
# Yarn
|
||||||
# }}}
|
"${config.xdg.cacheHome}/yarn"
|
||||||
# {{{ Neovim
|
|
||||||
satellite.persistence.at.cache.apps.Neovim.directories = [
|
# Pnpm
|
||||||
# "${config.xdg.dataHome}/nvim"
|
"${config.xdg.cacheHome}/pnpm"
|
||||||
];
|
"${config.xdg.dataHome}/pnpm"
|
||||||
|
".local/state/pnpm"
|
||||||
|
];
|
||||||
|
};
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ SSH
|
# {{{ SSH
|
||||||
satellite.persistence.at.state.apps.Ssh.directories = [
|
satellite.persistence.at.state.apps.Ssh.directories = [
|
||||||
|
@ -91,9 +95,4 @@
|
||||||
# {{{ Wine
|
# {{{ Wine
|
||||||
satellite.persistence.at.state.apps.Wine.directories = [ ".wine" ];
|
satellite.persistence.at.state.apps.Wine.directories = [ ".wine" ];
|
||||||
# }}}
|
# }}}
|
||||||
# # {{{ Syncthing
|
|
||||||
# satellite.persistence.at.state.apps.Syncthing.directories = [
|
|
||||||
# "${config.xdg.configHome}/syncthing" # Syncthing config data
|
|
||||||
# ];
|
|
||||||
# # }}}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue