# Example configuration file for htsn. For this to take effect, you
-# would need to place it in $HOME/.htsnrc
+# would need to place it in either /etc/htsnrc or $HOME/.htsnrc. The
+# latter overrides the former.
# The username used to connect to the feed.
#
from_rc :: IO OptionalConfiguration
from_rc = do
- cfg <- DC.load [ DC.Optional "$(HOME)/.htsnrc" ]
+ cfg <- DC.load [ DC.Optional "/etc/htsnrc",
+ DC.Optional "$(HOME)/.htsnrc" ]
cfg_password <- DC.lookup cfg "password"
cfg_output_directory <- DC.lookup cfg "output_directory"
cfg_username <- DC.lookup cfg "username"