open-goverance/flake.nix
Brendan Golden 04b9be1fbc
fix: turns out wkhtmltopdf has been depreciated for two years
It was running on a version of QT4 that hadnt gotten a browser update since 2015.
See https://wkhtmltopdf.org/status.html for more info

Its a shame to use a chrome based renderer for this but I would rather have somethign that would work
At least we got teh nix cache out of this though
2024-05-13 15:00:36 +01:00

60 lines
1.5 KiB
Nix

{
description = "UL Computer Society Open Governance";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
bfom.url = "gitlab:silver_rust/bfom";
};
/*
sudo nano /etc/nix/nix.conf
trusted-users = {username}
*/
nixConfig = {
extra-substituters = "https://nix-cache.skynet.ie/skynet-cache";
extra-trusted-public-keys = "skynet-cache:OdfA4Or0JcHiHf05fsiIR4nZT2z2yDEtkoLqhntGAz4=";
};
outputs = {
self,
nixpkgs,
utils,
bfom,
}:
utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
system = "${system}";
config = {
allowUnfree = true;
permittedInsecurePackages = [
# for obsidian
"electron-25.9.0"
];
};
};
in rec {
# `nix develop`
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [obsidian];
shellHook = ''
${pkgs.obsidian}/bin/obsidian &
BG_PID=$!
trap "kill -9 $BG_PID" EXIT
'';
};
packages = {
handovers = pkgs.writeShellScriptBin "format_handovers" ''
export PATH=${pkgs.lib.makeBinPath [pkgs.puppeteer-cli bfom.defaultPackage.x86_64-linux]}:$PATH
${./_scripts/format_handovers.sh}
'';
minutes = pkgs.writeShellScriptBin "format_minutes" ''
export PATH=${pkgs.lib.makeBinPath [pkgs.puppeteer-cli bfom.defaultPackage.x86_64-linux]}:$PATH
${./_scripts/format_minutes.sh}
'';
};
});
}