1
Fork 0

Set up more persistence paths

This commit is contained in:
Matei Adriel 2023-11-04 20:18:14 +01:00
parent 74191baf37
commit 3d8ee6ad0f
No known key found for this signature in database
5 changed files with 47 additions and 33 deletions

View file

@ -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"
];
} }

View file

@ -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";

View file

@ -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
];
} }

View file

@ -35,4 +35,8 @@ in
source ${base16-tmux} source ${base16-tmux}
''; '';
}; };
satellite.persistence.at.state.apps.tmux.directories = [
".tmux"
];
} }

View file

@ -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 directories = [
satellite.persistence.at.cache.apps.Shell.directories = [ # Node & npm
#"${config.xdg.dataHome}/fish" "${config.xdg.cacheHome}/node-gyp"
#"${config.xdg.dataHome}/z" # The z fish plugin ".npm"
#"${config.xdg.dataHome}/direnv/allow"
#".tmux" # Yarn
]; "${config.xdg.cacheHome}/yarn"
# }}}
# {{{ Neovim # Pnpm
satellite.persistence.at.cache.apps.Neovim.directories = [ "${config.xdg.cacheHome}/pnpm"
# "${config.xdg.dataHome}/nvim" "${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
# ];
# # }}}
} }