micro: add testbed (#1572)
Reviewed-by: awwpotato <awwpotato@voidq.com>
This commit is contained in:
parent
52401c3265
commit
6fe3f44852
1 changed files with 17 additions and 0 deletions
17
modules/micro/testbeds/micro.nix
Normal file
17
modules/micro/testbeds/micro.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
stylix.testbed.ui.command = {
|
||||
text = "${lib.getExe pkgs.micro} example.md";
|
||||
useTerminal = true;
|
||||
};
|
||||
|
||||
home-manager.sharedModules = lib.singleton {
|
||||
programs.micro.enable = true;
|
||||
home.file."example.md" = {
|
||||
source = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/sharkdp/bat/e2aa4bc33cca785cab8bdadffc58a4a30b245854/tests/syntax-tests/source/Markdown/example.md";
|
||||
hash = "sha256-VYYwgRFY1c2DPY7yGM8oF3zG4rtEpBWyqfPwmGZIkcA=";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue