diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-08 19:23:26 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-08 19:23:26 +0100 |
commit | f3688102bd5c7756fbb4bd3f18811630a8791254 (patch) | |
tree | e39e9f8117ab96522a70fd12d23e06a4fc92d724 /machines/srv1 | |
parent | cdc56f5df571d7a5e1a3ce294324a23baaf58875 (diff) | |
download | dots-f3688102bd5c7756fbb4bd3f18811630a8791254.tar.gz dots-f3688102bd5c7756fbb4bd3f18811630a8791254.zip |
cgit about page
Diffstat (limited to 'machines/srv1')
-rw-r--r-- | machines/srv1/configuration.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix index e9d23fd..bbf5df4 100644 --- a/machines/srv1/configuration.nix +++ b/machines/srv1/configuration.nix @@ -6,6 +6,15 @@ let }) { }).neovim.override { vimAlias = true; }; + + mirror = pkgs.writeScriptBin "mirror" '' + #!/bin/sh + + name=`echo "$1" | rev | cut -d'/' -f1 | rev` + + cd /srv/git + ${pkgs.git}/bin/git clone --mirror $1 $name + ''; in { imports = @@ -82,6 +91,7 @@ in environment.systemPackages = with pkgs; [ curl wget htop git nvim lm_sensors + mirror ]; services.openssh.enable = true; @@ -195,13 +205,14 @@ in cache-size=1000 root-title=git.niedzwiedzinski.cyou root-desc=Personal git server, because I can - scan-path=/srv/git/ - virtual-root=/ readme=:README.md readme=:README.rst readme=:README.txt readme=:README + snapshots=tar.gz + clone-prefix=https://git.niedzwiedzinski.cyou + scan-path=/srv/git/ ''; }; }; |