Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/matrix-synapse: make home directory configurable #31812

Merged
merged 2 commits into from Nov 20, 2017

Conversation

eqyiel
Copy link
Contributor

@eqyiel eqyiel commented Nov 19, 2017

Motivation for this change

Just want to save my home server's data in a non-standard spot.

The default is the same as it was before so existing users won't be affected.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@@ -44,7 +44,7 @@ database: {
}
event_cache_size: "${cfg.event_cache_size}"
verbose: ${cfg.verbose}
log_file: "/var/log/matrix-synapse/homeserver.log"
log_file: "${cfg.dataDir}/homeserver.log"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even want a separate logfile? All logs are going to the systemd jorunal anyways.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fpletz I don't have strong feelings either way - should I amend this PR or make another one to remove it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think two separate commits for to unrealted changes should do, however I don't think that it's necessary to even open another PR :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fpletz @Ma27 alright, I've added another commit that removes that line, and it seems to not have had any negative effect on my homeserver 👍

Copy link
Member

@fpletz fpletz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the logfile fix and for testing!

@fpletz fpletz merged commit 0ed7d4d into NixOS:master Nov 20, 2017
@eqyiel
Copy link
Contributor Author

eqyiel commented Nov 20, 2017 via email

@eqyiel eqyiel deleted the matrix-synapse-configurable-home branch November 3, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants