System/machines/oracles/automation.nix

16 lines
446 B
Nix
Raw Normal View History

2023-05-13 17:24:13 -04:00
{ config, lib, pkgs, ... }:
let
repo-updater = pkgs.writeShellScriptBin "repo-updater"
(builtins.readFile ../../scripts/gitea/update-repo.sh);
in {
# Automate updating rust utility flake
systemd.services."rust-util-update" = {
serviceConfig = {
ExecStart =
"/usr/bin/env bash ${repo-updater}/bin/repo-updater gitea@git.stranger.systems:nix/Rust.git trunk";
Type = "oneshot";
User = "nathan";
};
};
}