fmt: format teh flake
This commit is contained in:
parent
bd242e59cd
commit
d856e726ca
1 changed files with 44 additions and 40 deletions
16
flake.nix
16
flake.nix
|
@ -17,8 +17,13 @@
|
||||||
extra-trusted-public-keys = "skynet-cache:OdfA4Or0JcHiHf05fsiIR4nZT2z2yDEtkoLqhntGAz4=";
|
extra-trusted-public-keys = "skynet-cache:OdfA4Or0JcHiHf05fsiIR4nZT2z2yDEtkoLqhntGAz4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system:
|
outputs = {
|
||||||
let
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
utils,
|
||||||
|
bfom,
|
||||||
|
}:
|
||||||
|
utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
system = "${system}";
|
system = "${system}";
|
||||||
config = {
|
config = {
|
||||||
|
@ -34,7 +39,7 @@
|
||||||
in rec {
|
in rec {
|
||||||
# `nix develop`
|
# `nix develop`
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [ obsidian ];
|
nativeBuildInputs = with pkgs; [obsidian];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${pkgs.obsidian}/bin/obsidian &
|
${pkgs.obsidian}/bin/obsidian &
|
||||||
BG_PID=$!
|
BG_PID=$!
|
||||||
|
@ -44,15 +49,14 @@
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
handovers = pkgs.writeShellScriptBin "format_handovers" ''
|
handovers = pkgs.writeShellScriptBin "format_handovers" ''
|
||||||
export PATH=${pkgs.lib.makeBinPath [ pkgs.wkhtmltopdf bfom.defaultPackage.x86_64-linux ]}:$PATH
|
export PATH=${pkgs.lib.makeBinPath [pkgs.wkhtmltopdf bfom.defaultPackage.x86_64-linux]}:$PATH
|
||||||
${./_scripts/format_handovers.sh}
|
${./_scripts/format_handovers.sh}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
minutes = pkgs.writeShellScriptBin "format_minutes" ''
|
minutes = pkgs.writeShellScriptBin "format_minutes" ''
|
||||||
export PATH=${pkgs.lib.makeBinPath [ pkgs.wkhtmltopdf bfom.defaultPackage.x86_64-linux ]}:$PATH
|
export PATH=${pkgs.lib.makeBinPath [pkgs.wkhtmltopdf bfom.defaultPackage.x86_64-linux]}:$PATH
|
||||||
${./_scripts/format_minutes.sh}
|
${./_scripts/format_minutes.sh}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue