2023-06-09 13:17:34 +02:00
|
|
|
{ config, ... }: {
|
|
|
|
# {{{ XDG dirs
|
|
|
|
# The lack of "~/Desktop" and "~/Downloads" is intentional!
|
|
|
|
satellite.persistence.at.data.apps.main.directories = [
|
|
|
|
config.xdg.userDirs.documents
|
|
|
|
config.xdg.userDirs.pictures
|
|
|
|
config.xdg.userDirs.music
|
|
|
|
config.xdg.userDirs.videos
|
|
|
|
"Projects"
|
|
|
|
];
|
|
|
|
# }}}
|
|
|
|
# {{{ OpenTabletDriver
|
|
|
|
satellite.persistence.at.state.apps.OpenTabletDriver.directories = [
|
|
|
|
#"${config.xdg.configHome}/OpenTabletDriver"
|
|
|
|
];
|
|
|
|
# }}}
|
2023-11-04 20:51:56 +01:00
|
|
|
# {{{ Programming tooling
|
|
|
|
# {{{ Elm
|
|
|
|
satellite.persistence.at.cache.apps.elm.directories = [ ".elm" ];
|
2023-06-09 13:17:34 +02:00
|
|
|
# }}}
|
2023-11-04 20:51:56 +01:00
|
|
|
# {{{ Fly.io
|
|
|
|
satellite.persistence.at.state.apps.fly-io.directories = [ ".fly" ];
|
|
|
|
# }}}
|
|
|
|
# {{{ Haskell
|
|
|
|
satellite.persistence.at.cache.apps.haskell.directories = [
|
|
|
|
".ghc"
|
|
|
|
".stack"
|
|
|
|
".local/state/cabal"
|
|
|
|
"${config.xdg.cacheHome}/stack"
|
|
|
|
"${config.xdg.cacheHome}/ghcide"
|
|
|
|
"${config.xdg.cacheHome}/cabal"
|
2023-06-09 13:17:34 +02:00
|
|
|
];
|
|
|
|
# }}}
|
|
|
|
# {{{ Nodejs
|
2023-11-04 20:18:14 +01:00
|
|
|
satellite.persistence.at.cache.apps.nodejs = {
|
|
|
|
files = [
|
2023-11-04 20:51:56 +01:00
|
|
|
".yarnrc" # auto-generated by yarn
|
|
|
|
".node_repl_history"
|
|
|
|
".ts_node_repl_history"
|
2023-11-04 20:18:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
2023-06-09 13:17:34 +02:00
|
|
|
# }}}
|
2023-11-04 20:51:56 +01:00
|
|
|
# {{{ Purescript
|
|
|
|
satellite.persistence.at.cache.apps.purescript.directories = [
|
|
|
|
"${config.xdg.dataHome}/purescript"
|
|
|
|
"${config.xdg.cacheHome}/spago"
|
2023-06-09 13:17:34 +02:00
|
|
|
];
|
|
|
|
# }}}
|
2023-11-04 20:51:56 +01:00
|
|
|
# {{{ Python
|
|
|
|
satellite.persistence.at.cache.apps.python = {
|
|
|
|
files = [
|
|
|
|
".python_history"
|
|
|
|
];
|
|
|
|
|
|
|
|
directories = [
|
|
|
|
".ipython"
|
|
|
|
".jupyter"
|
|
|
|
"${config.xdg.dataHome}/jupyter"
|
|
|
|
"${config.xdg.cacheHome}/pip"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
# }}}
|
|
|
|
# {{{ Rust
|
|
|
|
satellite.persistence.at.cache.apps.rust.directories = [
|
|
|
|
".cargo"
|
|
|
|
".rustup"
|
|
|
|
];
|
|
|
|
# }}}
|
|
|
|
# }}}
|
|
|
|
# {{{ Desktop apps
|
2023-06-09 13:17:34 +02:00
|
|
|
# {{{ QBittorrent
|
|
|
|
satellite.persistence.at.state.apps.QBittorrent.directories = [
|
|
|
|
"${config.xdg.configHome}/qBittorrent" # Config options
|
|
|
|
];
|
|
|
|
|
|
|
|
satellite.persistence.at.cache.apps.QBittorrent.directories = [
|
|
|
|
# TODO: investigate which subdirectories/files I actually want to keep
|
|
|
|
"${config.xdg.dataHome}/qBittorrent" # Torrent files, logs, etc
|
|
|
|
];
|
|
|
|
# }}}
|
|
|
|
# {{{ Signal
|
|
|
|
satellite.persistence.at.state.apps.Signal.directories = [
|
|
|
|
"${config.xdg.configHome}/Signal" # Why tf does signal store it's state here 💀
|
|
|
|
];
|
|
|
|
# }}}
|
|
|
|
# {{{ Steam
|
|
|
|
satellite.persistence.at.state.apps.Steam = {
|
|
|
|
directories = [
|
2023-08-17 09:31:46 +02:00
|
|
|
".factorio" # TODO: perhaps this should have it's own file?
|
2023-06-09 13:17:34 +02:00
|
|
|
# A couple of games don't play well with bindfs
|
|
|
|
{
|
|
|
|
directory = "${config.xdg.dataHome}/Steam";
|
|
|
|
method = "symlink";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
# }}}
|
|
|
|
# {{{ Lutris
|
|
|
|
# TODO: there might be more to cache in .cache/lutris
|
|
|
|
satellite.persistence.at.state.apps.Lutris.directories = [
|
|
|
|
"${config.xdg.configHome}/lutris" # General config data
|
|
|
|
"${config.xdg.cacheHome}/lutris/banners" # Game banners
|
|
|
|
"${config.xdg.cacheHome}/lutris/coverart" # Game cover art
|
|
|
|
|
|
|
|
# Aparently IO intensive stuff like games prefer symlinks?
|
|
|
|
{ directory = "Games/Lutris"; method = "symlink"; } # Lutris games
|
|
|
|
];
|
|
|
|
# }}}
|
|
|
|
# {{{ Wine
|
|
|
|
satellite.persistence.at.state.apps.Wine.directories = [ ".wine" ];
|
|
|
|
# }}}
|
2023-11-04 20:51:56 +01:00
|
|
|
# }}}
|
2023-06-09 13:17:34 +02:00
|
|
|
}
|