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

gitit does not have rights in gitit home directory #22936

Closed
matthiasbeyer opened this issue Feb 18, 2017 · 1 comment
Closed

gitit does not have rights in gitit home directory #22936

matthiasbeyer opened this issue Feb 18, 2017 · 1 comment

Comments

@matthiasbeyer
Copy link
Contributor

Issue description

I created a container to host a gitit instance, but the wiki fails to start because it is now allowed to write to var/lib/gitit/wiki/:

{ port, MemoryHighMB, CPUShares, ... }:
{
  autoStart = false;
  config = { config, pkgs, ... }: {
    imports = [ <nixpkgs/nixos/modules/services/misc/gitit.nix> ];

    nixpkgs.config.allowUnfree = false;

    services.gitit = {
      enable = true;
      plugins = [];

      port = port;
      wikiTitle = "test";
      repositoryType = "git"; # Be explicit here
      requireAuthentication = "none"; # Its just for local use...
    };

    systemd.services.gitit.serviceConfig = {
      MemoryHigh = MemoryHighMB * 1024 * 1024;
      CPUShares  = CPUShares;
    };
  };
}

Steps to reproduce

Use the above nix snippet and put containers.gitit = import /path/to/snip.nix { pkgs = pkgs; CPUShares = 512; MemoryHighMB = 512; }; into the configuration.nix.

Technical details

  • System: 17.03pre101231.19a9099 (Gorilla)
  • Nix version: nix-env (Nix) 1.11.6
  • Nixpkgs version: "17.03pre101231.19a9099"
@matthiasbeyer
Copy link
Contributor Author

Issue seems to be solved. I don't know why, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant