pwntie: run ci daily
This commit is contained in:
parent
aae02fa903
commit
9924444dcb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user