diff --git a/users/crumb/files.nix b/users/crumb/files.nix index fd467cc..82ad5bf 100755 --- a/users/crumb/files.nix +++ b/users/crumb/files.nix @@ -66,8 +66,8 @@ in lib.mkMerge [ # TODO: sydnix.syncthing module sydnix.impermanence.directories = let xdg-state-dir = - "${config.home.stateHome - or "${config.home.homeDirectory}/.local/state"}"; + config.home.statehome + or "${config.home.homeDirectory}/.local/state"; in [ # HACK: This relies on behaviour that is not explicitly defined by the # Syncthing Home-manager module. We have to trust that $XDG_STATE_DIR, diff --git a/users/crumb/programs/haskell.nix b/users/crumb/programs/haskell.nix index 198ebcd..f0b12bb 100644 --- a/users/crumb/programs/haskell.nix +++ b/users/crumb/programs/haskell.nix @@ -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 + # ''; }