mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
22 lines
417 B
Nix
22 lines
417 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
inherit (pkgs) writeScriptBin writeTextDir;
|
|
in
|
|
|
|
{
|
|
programs.gram = {
|
|
enable = true;
|
|
package = writeScriptBin "gram" "";
|
|
extensionPackages = [
|
|
(writeTextDir "share/gram/extensions/foo/.keep" "")
|
|
(writeTextDir "share/zed/extensions/bar/.keep" "")
|
|
];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContains home-path/bin/gram \
|
|
'export GRAM_SYSTEM_EXTENSIONS_DIR'
|
|
'';
|
|
}
|