1
0
Fork 0

Move overlay to separate module argument

This commit is contained in:
Ethan Reece 2025-07-19 22:56:50 -05:00
parent a7b6bdb94e
commit 03e9c46439
Signed by: me
GPG key ID: DD8CE04D5D8FF832
2 changed files with 15 additions and 5 deletions

View file

@ -10,15 +10,20 @@
inputs.devshell.flakeModule
];
perSystem =
{ config, system, ... }:
{
config,
pkgs,
system,
...
}:
let
pkgs = import inputs.nixpkgs {
nixGLPkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.nixgl.overlays.default ];
};
in
{
_module.args.pkgs = pkgs;
_module.args.nixGLPkgs = nixGLPkgs;
devshells.default = {
commands = [
{

View file

@ -6,7 +6,12 @@
{
imports = [ ../en-us ];
options.perSystem = flake-parts-lib.mkPerSystemOption (
{ config, pkgs, ... }:
{
config,
nixGLPkgs,
pkgs,
...
}:
{
options.languages.typst.enable = lib.mkEnableOption "Typst";
config = lib.mkIf config.languages.typst.enable (
@ -53,7 +58,7 @@
help = "󰌧 launch Typst editing environment";
name = "typst-edit";
category = "󰷈 Typst";
command = "${pkgs.nixgl.nixGLMesa}/bin/nixGLMesa ${pkgs.qutebrowser}/bin/qutebrowser ${tinymistURL} & ${pkgs.helix}/bin/hx; kill $!";
command = "${nixGLPkgs.nixgl.nixGLMesa}/bin/nixGLMesa ${pkgs.qutebrowser}/bin/qutebrowser ${tinymistURL} & ${pkgs.helix}/bin/hx; kill $!";
}
];
}