bat: add testbed (#1095)

This commit is contained in:
Flameopathic 2025-04-05 16:08:16 -04:00 committed by GitHub
parent 3a6985718a
commit 8865a737ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ lib, pkgs, ... }:
let
package = pkgs.bat;
in
{
environment = {
loginShellInit = "${lib.getExe package} example.md";
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

@ -21,6 +21,8 @@ let
security.sudo.wheelNeedsPassword = false;
services.getty.autologinUser = username;
# The state version can safely track the latest release because the disk
# image is ephemeral.
system.stateVersion = config.system.nixos.release;