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/duplicati: add port and datafolder options #41057

Merged
merged 1 commit into from Jun 9, 2018

Conversation

nyanloutre
Copy link
Member

Motivation for this change

Add some modularity to the duplicati module.
It's now possible to specify the port duplicaty is listening on with services.duplicati.port and the datafolder with services.duplicati.datafolder.

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.

@peterhoeg
Copy link
Member

Having configuration options is always a good idea of course, but isn't the datafolder just used for storing the internal state in which it really doesn't matter where it goes, no?

While you're at it, please make the interface on which it listens configurable instead of the current any. Having it listen on all interfaces seems like a security issue waiting to happen.

@nyanloutre
Copy link
Member Author

@peterhoeg Thanks for the review. You are right the datafolder is only used to store the state of the backups so it could be hardcoded as it would not be a big deal.

@nyanloutre nyanloutre force-pushed the duplicati/custom_options branch 3 times, most recently from 467859d to 7e6c4c5 Compare May 26, 2018 09:07
@peterhoeg
Copy link
Member

In the name of security, how about changing the default interface to localhost and make a note in the description about setting it back to any if needed?

@nyanloutre
Copy link
Member Author

@peterhoeg done !

@peterhoeg peterhoeg merged commit 8219b4a into NixOS:master Jun 9, 2018
@nyanloutre nyanloutre deleted the duplicati/custom_options branch June 9, 2018 10:59
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

3 participants