configurations of hq services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configuration.nix 699B

1234567891011121314151617181920212223242526272829303132333435
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4. { config, pkgs, lib, ... }:
  5. {
  6. imports =
  7. [ ../../../lib/lxc-container.nix
  8. ../../../lib/shared.nix
  9. ../../../lib/admins.nix
  10. ];
  11. environment.systemPackages = with pkgs; [
  12. vim
  13. ];
  14. networking = {
  15. hostName = "mongo";
  16. };
  17. services.openssh = {
  18. enable = true;
  19. permitRootLogin = "yes";
  20. };
  21. services.mongodb = {
  22. enable = true;
  23. bind_ip = "0.0.0.0";
  24. dbpath = "/srv/mongodb";
  25. };
  26. system.stateVersion = "19.03"; # Did you read the comment?
  27. }