helix: add wakapi
This commit is contained in:
+13
-1
@@ -1,4 +1,4 @@
|
|||||||
{ inputs, pkgs, ... }: let
|
{ inputs, pkgs, lib, config, ... }: let
|
||||||
helixSteel =
|
helixSteel =
|
||||||
inputs.helix-steel.packages.${pkgs.system}.default.overrideAttrs (old: {
|
inputs.helix-steel.packages.${pkgs.system}.default.overrideAttrs (old: {
|
||||||
cargoBuildFlags = (old.cargoBuildFlags or []) ++ [
|
cargoBuildFlags = (old.cargoBuildFlags or []) ++ [
|
||||||
@@ -71,8 +71,19 @@ in {
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
asm-lsp
|
asm-lsp
|
||||||
fasm
|
fasm
|
||||||
|
steel
|
||||||
|
wakatime-cli
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.activation.installWakatimeHx = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
export PATH="${pkgs.steel}/bin:$PATH"
|
||||||
|
export STEEL_HOME="${config.xdg.dataHome}/steel"
|
||||||
|
|
||||||
|
if [ ! -f "$STEEL_HOME/cogs/wakatime/wakatime.scm" ]; then
|
||||||
|
forge pkg install --git https://github.com/Xerxes-2/wakatime.hx.git
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = helixSteel;
|
package = helixSteel;
|
||||||
@@ -185,6 +196,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
"helix/init.scm".text = ''
|
"helix/init.scm".text = ''
|
||||||
;; Steel init file
|
;; Steel init file
|
||||||
|
(require "wakatime/wakatime.scm")
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user