bump nixpkgs-bot
This commit is contained in:
parent
55b360ef48
commit
6d7dce997a
|
@ -124,7 +124,7 @@
|
|||
"nixpkgs-bot": {
|
||||
"branch": "main",
|
||||
"repo": "git@hera.m-0.eu:nixpkgs-bot",
|
||||
"rev": "b2e23052569cebae076558e47a81585cb9f4817e",
|
||||
"rev": "095b1ddcb47509600271a0c6bf568a5d6cc1e04f",
|
||||
"type": "git"
|
||||
},
|
||||
"obelisk": {
|
||||
|
|
|
@ -1,11 +1,37 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, ...}: let
|
||||
stateDirectory = "/var/lib/nixkpgs-bot";
|
||||
config = {
|
||||
server = "https://matrix.maralorn.de";
|
||||
database = "${stateDirectory}/state.sqlite";
|
||||
repo = {
|
||||
localPath = "${stateDirectory}/nixpkgs";
|
||||
owner = "NixOS";
|
||||
name = "nixpkgs";
|
||||
branches = {
|
||||
"staging" = ["staging-next"];
|
||||
"staging-next" = ["master"];
|
||||
"haskell-updates" = ["master"];
|
||||
"master" = ["nixos-unstable-small" "nixpkgs-unstable"];
|
||||
"nixpkgs-unstable" = [];
|
||||
"nixos-unstable-small" = ["nixos-unstable"];
|
||||
"nixos-unstable" = [];
|
||||
"staging-22.05" = ["staging-next-22.05"];
|
||||
"staging-next-22.05" = ["release-22.05"];
|
||||
"release-22.05" = ["nixos-22.05-small"];
|
||||
"nixos-22.05-small" = ["nixos-22.05"];
|
||||
"nixos-22.05" = [];
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
systemd.services.nixpkgs-bot = {
|
||||
wantedBy = ["multi-user.target"];
|
||||
description = "nixpkgs-bot";
|
||||
path = [pkgs.git];
|
||||
serviceConfig = {
|
||||
LoadCredential = ["matrix_token:${pkgs.privateFile "nixpkgs-bot/matrix_token"}" "github_token:${pkgs.privateFile "nixpkgs-bot/github_token"}"];
|
||||
WorkingDirectory = "/var/lib/nixpkgs-bot";
|
||||
ExecStart = "${pkgs.nixpkgs-bot}/bin/nixpkgs-bot /var/lib/nixpkgs-bot/config.yaml";
|
||||
ExecStart = "${pkgs.nixpkgs-bot}/bin/nixpkgs-bot ${builtins.toFile "config.yaml" (builtins.toJSON config)}";
|
||||
DynamicUser = true;
|
||||
StateDirectory = "nixpkgs-bot";
|
||||
};
|
||||
|
|
2
private
2
private
|
@ -1 +1 @@
|
|||
Subproject commit 63ffea2ff280a7795e7edcfb57cbfe5fa68a0726
|
||||
Subproject commit b90f4a3c4a21f25d45bf0a26bc705f1fef3b5f38
|
Loading…
Reference in a new issue