remove dirs config & documentation
2 files changed, 6 insertions(+), 20 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 = [ "" ];
M readme → readme
@@ -39,8 +39,6 @@ - README.md mainBranch: - master - main - dirs: - static: ./static meta: title: git good description: i think it's a skill issue@@ -54,7 +52,6 @@ These options are fairly self-explanatory, but of note are: • repo.root: where all your git repos live (or die). This should contain projects.list and repositories/ -• dirs: use this to override the static assets. • repo.readme: readme files to look for. • repo.mainBranch: main branch names to look for. • repo.unlisted: repos to hide, relative to root/repositories.