Move overlay to separate module argument
This commit is contained in:
parent
a7b6bdb94e
commit
03e9c46439
2 changed files with 15 additions and 5 deletions
|
|
@ -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 = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 $!";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue