exit early from clone config

This commit is contained in:
Infinidoge 2024-12-08 01:33:42 -05:00
parent 65d1a1c993
commit b626f5991e
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -45,6 +45,7 @@ in
requires = [ "network-online.target" ]; requires = [ "network-online.target" ];
path = with pkgs; [ git git-crypt ]; path = with pkgs; [ git git-crypt ];
script = '' script = ''
[ -d /etc/nixos/.git ] && exit 0
git clone https://git.inx.moe/Infinidoge/kiosk.git /etc/nixos git clone https://git.inx.moe/Infinidoge/kiosk.git /etc/nixos
cd /etc/nixos cd /etc/nixos
git-crypt unlock /etc/decryption.key git-crypt unlock /etc/decryption.key