dev.fron.io rc / c735839
containers::vervis: set xdg cache Tony Olagbaiye 1 year, 1 month ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5151 networking.firewall.enable = false;
5252
5353 environment.systemPackages = with pkgs; [
54 vervis yq yj jq
54 vervis yq yj jq git darcs
5555 ];
5656
5757 environment.etc = let
7474 systemd.services.vervis = {
7575 path = with pkgs; [ git darcs ];
7676 environment = {
77 XDG_CACHE_HOME = config.vervis.dataDir;
7778 HOME = config.vervis.dataDir;
7879
7980 PORT = "3000";
9394 ln -sf /etc/vervis ${config.vervis.dataDir}/config
9495 fi
9596 mkdir -p ${config.vervis.dataDir}/repos
97 if [ ! -x ${config.vervis.dataDir}/vervis ]; then
98 ln -sf ${config.vervis.dataDir} ${config.vervis.dataDir}/vervis
99 fi
96100 '';
97101 ExecStart = "${pkgs.vervis}/bin/vervis";
98102 WorkingDirectory = config.vervis.dataDir;