pwntie: run ci daily

This commit is contained in:
Aaron Bieber 2023-02-01 19:43:51 -07:00
parent aae02fa903
commit 9924444dcb
No known key found for this signature in database

View File

@ -1,10 +1,32 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let
myEmacs = pkgs.callPackage ../../configs/emacs.nix { };
pubKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7v+/xS8832iMqJHCWsxUZ8zYoMWoZhjj++e26g1fLT europa"
];
mkCronScript = name: src: ''
. /etc/profile;
set -x
# autogenreated ${name}
${src}
'';
jobs = [
{
name = "xin-ci";
script = "cd ~/src/xin && ./ci";
startAt = "daily";
path = [ ];
}
];
jobToService = job: {
name = "${job.name}";
value = {
script = mkCronScript "${job.name}_script" job.script;
inherit (job) startAt;
inherit (job) path;
};
};
in {
_module.args.isUnstable = true;
imports = [ ./hardware-configuration.nix ];
@ -15,6 +37,8 @@ in {
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.kernelPackages = pkgs.linuxPackages_latest;
systemd.user.services = lib.listToAttrs (builtins.map jobToService jobs);
networking = {
hostName = "pwntie";
networkmanager.enable = true;