1
0
Fork 0

Install nixpkgs-bot

This commit is contained in:
Malte 2022-11-10 03:45:03 +01:00
parent 7c4220e5e9
commit e301583a3c
5 changed files with 24 additions and 1 deletions

View file

@ -121,6 +121,12 @@
"url": "https://github.com/NixOS/nixpkgs/archive/301aada7a64812853f2e2634a530ef5d34505048.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs-bot": {
"branch": "main",
"repo": "git@hera.m-0.eu:nixpkgs-bot",
"rev": "c8363dd353bb40357339b760258d36d07b4b7b91",
"type": "git"
},
"obelisk": {
"branch": "master",
"description": "Obelisk provides an easy way to develop and deploy your Reflex project for web and mobile",

View file

@ -28,6 +28,7 @@ in {
../../roles/mailman.nix
../../roles/firefox-sync.nix
../../roles/goatcounter.nix
../../roles/nixpkgs-bot.nix
(import ../../roles/monitoring/folder-size-exporter.nix {
folders = [
"/"

View file

@ -0,0 +1,13 @@
{pkgs, ...}: {
systemd.services.nixpkgs-bot = {
wantedBy = ["multi-user.target"];
description = "nixpkgs-bot";
path = [pkgs.git];
serviceConfig = {
WorkingDirectory = "/var/lib/nixpkgs-bot";
ExecStart = "${pkgs.nixpkgs-bot}/bin/nixpkgs-bot /var/lib/nixpkgs-bot/config.yaml";
DynamicUser = true;
StateDirectory = "nixpkgs-bot";
};
};
}

View file

@ -2,8 +2,10 @@ self: super: let
unstable = import super.sources.nixos-unstable {};
nom_commit = (builtins.fromJSON (builtins.readFile ../nix/sources.json)).nix-output-monitor.rev;
hx_commit = (builtins.fromJSON (builtins.readFile ../nix/sources.json)).helix.rev;
bot_commit = (builtins.fromJSON (builtins.readFile ../nix/sources.json)).nixpkgs-bot.rev;
hx = builtins.getFlake "github:helix-editor/helix/${hx_commit}";
nom = builtins.getFlake "git+ssh://git@hera.m-0.eu/nix-output-monitor?rev=${nom_commit}&ref=main";
bot = builtins.getFlake "git+ssh://git@hera.m-0.eu/nixpkgs-bot?rev=${bot_commit}&ref=main";
in {
inherit unstable;
unstableHaskellPackages = unstable.haskellPackages;
@ -11,4 +13,5 @@ in {
inherit (unstable) nix home-assistant vscode-extensions vscodium cachix cabal2nix chrysalis;
nix-output-monitor = nom.packages.x86_64-linux.default;
helix = hx.packages.x86_64-linux.default;
nixpkgs-bot = bot.packages.x86_64-linux.default;
}

@ -1 +1 @@
Subproject commit eb88a5c6e97cb5f5b677cb2104127a70578b7bb9
Subproject commit 63ffea2ff280a7795e7edcfb57cbfe5fa68a0726