build01: drop broken clone-nixpkgs

This commit is contained in:
Jörg Thalheim 2022-03-02 07:59:51 +01:00
parent f0c9062a0a
commit 5d7ded27cd
No known key found for this signature in database
2 changed files with 0 additions and 16 deletions

View file

@ -12,7 +12,6 @@
{
imports = [
../roles/dev-packages.nix
../roles/clone-nixpkgs.nix
../roles/common.nix
../roles/hardware/hetzner-amd.nix
../roles/hetzner-network.nix

View file

@ -1,15 +0,0 @@
({ pkgs, ... }: {
systemd.services.clone-nixpkgs = {
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];
serviceConfig.Type = "oneshot";
startAt = "daily";
script = ''
if [ -d /var/lib/nixpkgs.git ]; then
${pkgs.git}/bin/git -C /var/lib/nixpkgs.git fetch
else
${pkgs.git}/bin/git clone --bare https://github.com/nixos/nixpkgs /var/lib/nixpkgs.git
fi
'';
};
})