fix(haskell): Persist Cabal store
This commit is contained in:
@@ -37,10 +37,25 @@
|
||||
}
|
||||
'';
|
||||
|
||||
# Some global Cabal configuration.
|
||||
xdg.configFile.".cabal/config".text = ''
|
||||
-- Globally-enable Nix integration. See
|
||||
-- https://cabal.readthedocs.io/en/3.4/nix-integration.html
|
||||
nix: True
|
||||
'';
|
||||
sydnix.impermanence.cache.directories =
|
||||
let xdg-cache-dir =
|
||||
config.home.cacheHome
|
||||
or "${config.home.homeDirectory}/.cache";
|
||||
in [
|
||||
# We don't want to rebuild Hackage simply due to a reboot, do we? }:)
|
||||
(lib.removePrefix "${config.home.homeDirectory}/"
|
||||
"${xdg-cache-dir}/cabal")
|
||||
];
|
||||
|
||||
# # Some global Cabal configuration.
|
||||
# xdg.configFile."cabal/config".text = ''
|
||||
# repository hackage.haskell.org
|
||||
# url: http://hackage.haskell.org/
|
||||
|
||||
# nix: True
|
||||
# remote-repo-cache: /home/crumb/.cache/cabal/packages
|
||||
# build-summary: /home/crumb/.cache/cabal/logs/build.log
|
||||
# jobs: $ncpus
|
||||
# remote-build-reporting: none
|
||||
# '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user