about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-02-07 15:09:58 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-02-07 15:09:58 +0100
commiteac385da057c0aea48e6b725a42096053330f31f (patch)
treee5d83e6851b7e3a0f2fdb992b52a62fd466c56a8
parentff0dbde23fedf57102d335e77d0722a228cdd154 (diff)
downloaddots-eac385da057c0aea48e6b725a42096053330f31f.tar.gz
dots-eac385da057c0aea48e6b725a42096053330f31f.zip
Fix git-fetch service
-rw-r--r--machines/srv1/configuration.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index b940a76..4505cb2 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -1,6 +1,9 @@
 { config, pkgs, ... }:
 let
-  nvim = pkgs.neovim.override {
+  nvim = (import (pkgs.fetchzip {
+    url = "https://github.com/nixos/nixpkgs/archive/517c29935b6e4dec12571e7d101e2b0da220263d.zip";
+    sha256 = "1s85sz62iykvca90d3cgd981670rnkd5c171wda7wpwdj0d52sf3";
+  }) { }).neovim.override {
     vimAlias = true;
   };
 in
@@ -49,7 +52,8 @@ in
   # };
 
   environment.systemPackages = with pkgs; [
-    curl wget nvim htop git
+    curl wget htop git
+    nvim
   ];
 
   services.openssh.enable = true;
@@ -85,7 +89,7 @@ in
         cd /srv/git
         for f in `ls -I git-shell-commands`; do
           cd $f
-          git fetch
+          ${pkgs.git}/bin/git fetch
           cd ..
         done
       '';
@@ -94,6 +98,8 @@ in
       };
     };
     timers.git-fetch = {
+      partOf = [ "git-fetch.service" ];
+      wantedBy = ["timers.target" ];
       timerConfig = {
         OnCalendar = "hourly";
         Unit = "git-fetch.service";