treewide: replace custom testbed test files with Flake Parts tree

This commit is contained in:
NAHO 2025-07-08 19:41:02 +02:00
parent 1adb93fcbc
commit 79fab36b0f
No known key found for this signature in database
GPG key ID: BFB5D5E3F4C95185
7 changed files with 8 additions and 62 deletions

View file

@ -4,17 +4,7 @@ let
in
{
environment = {
loginShellInit = "${lib.getExe package} example.md";
loginShellInit = "${lib.getExe package} flake-parts/flake.nix";
systemPackages = [ package ];
};
home-manager.sharedModules = [
{
home.file."example.md" = {
source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sharkdp/bat/refs/heads/master/tests/syntax-tests/source/Markdown/example.md";
hash = "sha256-VYYwgRFY1c2DPY7yGM8oF3zG4rtEpBWyqfPwmGZIkcA=";
};
};
}
];
}

View file

@ -1,17 +1,11 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "${lib.getExe pkgs.micro} example.md";
text = "${lib.getExe pkgs.micro} flake-parts/flake.nix";
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=";
};
};
};
}

View file

@ -1,17 +1,11 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
stylix.testbed.ui.command = {
text = "nvim example.md";
text = "nvim flake-parts/flake.nix";
useTerminal = true;
};
home-manager.sharedModules = lib.singleton {
programs.neovim.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=";
};
};
};
}

View file

@ -1,18 +1,8 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "nvim example.md";
text = "nvim flake-parts/flake.nix";
useTerminal = true;
};
programs.nixvim.enable = true;
home-manager.sharedModules = lib.singleton {
home.file."example.md" = {
source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sharkdp/bat/refs/heads/master/tests/syntax-tests/source/Markdown/example.md";
hash = "sha256-VYYwgRFY1c2DPY7yGM8oF3zG4rtEpBWyqfPwmGZIkcA=";
};
};
};
}

View file

@ -1,18 +1,8 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "nvim example.md";
text = "nvim flake-parts/flake.nix";
useTerminal = true;
};
programs.nvf.enable = true;
home-manager.sharedModules = lib.singleton {
home.file."example.md" = {
source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sharkdp/bat/refs/heads/master/tests/syntax-tests/source/Markdown/example.md";
hash = "sha256-VYYwgRFY1c2DPY7yGM8oF3zG4rtEpBWyqfPwmGZIkcA=";
};
};
};
}

View file

@ -1,17 +1,11 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "${lib.getExe pkgs.vim} example.md";
text = "${lib.getExe pkgs.vim} flake-parts/flake.nix";
useTerminal = true;
};
home-manager.sharedModules = lib.singleton {
programs.vim.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=";
};
};
};
}

View file

@ -1,16 +1,10 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "${lib.getExe pkgs.zed-editor} example.md";
text = "${lib.getExe pkgs.zed-editor} flake-parts/flake.nix";
};
home-manager.sharedModules = lib.singleton {
programs.zed-editor.enable = true;
home.file."example.md" = {
source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sharkdp/bat/e2aa4bc33cca785cab8bdadffc58a4a30b245854/tests/syntax-tests/source/Rust/output.rs";
hash = "sha256-vpUndD6H1oJfYVDai4LpVpsW6SSGbK466t3IKENZ1ow=";
};
};
};
}