diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-07 15:09:58 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-07 15:09:58 +0100 |
commit | eac385da057c0aea48e6b725a42096053330f31f (patch) | |
tree | e5d83e6851b7e3a0f2fdb992b52a62fd466c56a8 | |
parent | ff0dbde23fedf57102d335e77d0722a228cdd154 (diff) | |
download | dots-eac385da057c0aea48e6b725a42096053330f31f.tar.gz dots-eac385da057c0aea48e6b725a42096053330f31f.zip |
Fix git-fetch service
-rw-r--r-- | machines/srv1/configuration.nix | 12 |
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"; |