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.nix-direnv.enable = true;
@ -8,4 +8,8 @@
# No more usesless logs
DIRENV_LOG_FORMAT = "";
};
satellite.persistence.at.state.apps.direnv.directories = [
"${config.xdg.dataHome}/direnv/allow"
];
}

View file

@ -1,10 +1,12 @@
{ upkgs, lib, ... }: {
# REASON: not yet in nixpkgs-stable
home.packages = [ upkgs.eza ];
{ pkgs, lib, ... }:
let package = pkgs.eza;
in
{
home.packages = [ package ];
# TODO: generalize alias creation to all shells
programs.fish.shellAliases =
let eza = lib.getExe upkgs.eza;
let eza = lib.getExe package;
in
rec {
ls = "${eza} --icons --long";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs.fish = {
enable = true;
@ -30,4 +30,9 @@
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}
'';
};
satellite.persistence.at.state.apps.tmux.directories = [
".tmux"
];
}

View file

@ -15,34 +15,38 @@
];
# }}}
# {{{ Rust
satellite.persistence.at.cache.apps.Rust.directories = [
#".cargo"
#".rustup"
satellite.persistence.at.cache.apps.rust.directories = [
".cargo"
".rustup"
];
# }}}
# {{{ Purescript
satellite.persistence.at.cache.apps.Purescript.directories = [
#"${config.xdg.cacheHome}/spago"
satellite.persistence.at.cache.apps.purescript.directories = [
"${config.xdg.dataHome}/purescript"
"${config.xdg.cacheHome}/spago"
];
# }}}
# {{{ Nodejs
satellite.persistence.at.cache.apps.Node.directories = [
#"${config.xdg.cacheHome}/yarn"
#"${config.xdg.dataHome}/pnpm"
];
# }}}
# {{{ Shell stuff
satellite.persistence.at.cache.apps.Shell.directories = [
#"${config.xdg.dataHome}/fish"
#"${config.xdg.dataHome}/z" # The z fish plugin
#"${config.xdg.dataHome}/direnv/allow"
#".tmux"
];
# }}}
# {{{ Neovim
satellite.persistence.at.cache.apps.Neovim.directories = [
# "${config.xdg.dataHome}/nvim"
];
satellite.persistence.at.cache.apps.nodejs = {
files = [
# Yarn auto-generated file
".yarnrc"
];
directories = [
# Node & npm
"${config.xdg.cacheHome}/node-gyp"
".npm"
# Yarn
"${config.xdg.cacheHome}/yarn"
# Pnpm
"${config.xdg.cacheHome}/pnpm"
"${config.xdg.dataHome}/pnpm"
".local/state/pnpm"
];
};
# }}}
# {{{ SSH
satellite.persistence.at.state.apps.Ssh.directories = [
@ -91,9 +95,4 @@
# {{{ Wine
satellite.persistence.at.state.apps.Wine.directories = [ ".wine" ];
# }}}
# # {{{ Syncthing
# satellite.persistence.at.state.apps.Syncthing.directories = [
# "${config.xdg.configHome}/syncthing" # Syncthing config data
# ];
# # }}}
}