remove dirs config & documentation
1 file changed, 6 insertions(+), 17 deletions(-)
changed files
M nix/nixos-module.nix → nix/nixos-module.nix
@@ -1,7 +1,8 @@ -{ config -, lib -, pkgs -, ... +{ + config, + lib, + pkgs, + ... }: let@@ -22,7 +23,6 @@ yaml = pkgs.formats.yaml { }; configFile = yaml.generate "elgit.yaml" cfg.settings; defaultStateDir = "/var/lib/elgit"; - defaultStaticDir = "${defaultStateDir}/static"; in { options.services.elgit = {@@ -81,14 +81,6 @@ default = [ ]; description = "Repositories to hide from index."; }; }; - options.dirs = { - static = mkOption { - type = types.path; - default = "${pkgs.elgit}/lib/elgit/static"; - defaultText = literalExpression ''"''${pkgs.elgit}/lib/elgit/static"''; - description = "Directories where static files are located."; - }; - }; options.meta = { title = mkOption { type = types.str;@@ -159,10 +151,7 @@ ExecStart = "${cfg.package}/bin/elgit -config /etc/elgit/config.yaml"; Restart = "always"; WorkingDirectory = cfg.settings.repo.root; - StateDirectory = - [ ] - ++ optional (cfg.settings.repo.root == defaultStateDir) "elgit" - ++ optional (cfg.settings.dirs.static == defaultStaticDir) "elgit/static"; + StateDirectory = optional (cfg.settings.repo.root == defaultStateDir) "elgit"; # Hardening CapabilityBoundingSet = [ "" ];