Skip to content

Commit

Permalink
feat: steel stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Jul 26, 2024
1 parent 1b36c11 commit 1de356f
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 56 deletions.
99 changes: 48 additions & 51 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
aagl-gtk-on-nix.url = "github:ezkea/aagl-gtk-on-nix";
aagl-gtk-on-nix.inputs.nixpkgs.follows = "nixpkgs";

steel.url = "github:mattwparas/steel";
steel.inputs.nixpkgs.follows = "nixpkgs";
nix-steel.url = "github:bddvlpr/nix-steel";
nix-steel.inputs.nixpkgs.follows = "nixpkgs";

helix-steel.url = "github:mattwparas/helix?ref=steel-event-system";
helix-steel.inputs.nixpkgs.follows = "nixpkgs";
Expand Down
9 changes: 9 additions & 0 deletions modules/home/helix/languages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
inherit (lib) getExe;
inherit (pkgs) alejandra;
inherit (pkgs.nodePackages) prettier;
inherit (inputs.nix-steel.packages.${pkgs.system}) steel-language-server;
inherit (inputs.snippets-ls.packages.${pkgs.system}) snippets-ls;

mkPrettier = {
Expand Down Expand Up @@ -65,12 +66,20 @@ in {
name = "toml";
auto-format = true;
}
{
name = "scheme";
language-servers = ["steel-language-server"];
}
];

language-server = {
snippets-ls = {
command = getExe snippets-ls;
args = ["-config" ./snippets.json];
};
steel-language-server = {
command = getExe steel-language-server;
args = [];
};
};
}
9 changes: 6 additions & 3 deletions modules/home/steel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@
...
}: let
inherit (lib) mkIf mkOption types;
inherit (inputs.steel.packages.${pkgs.system}) steel;
inherit (inputs.nix-steel.packages.${pkgs.system}) steel;

cfg = config.sysc.steel;
in {
options.sysc.steel = {
enable = mkOption {
type = types.bool;
default = false;
default = true;
description = "Whether to enable steel.";
};
};

config = mkIf cfg.enable {
home.packages = [steel];
home.sessionVariables.STEEL_HOME = "${steel}/lib";
home.sessionVariables = {
STEEL_HOME = "${steel}/home";
STEEL_LSP_HOME = "/home/bddvlpr/temp-lsp";
};
};
}

0 comments on commit 1de356f

Please sign in to comment.