bat: add testbed (#1095)
This commit is contained in:
parent
3a6985718a
commit
8865a737ce
2 changed files with 22 additions and 0 deletions
20
modules/bat/testbeds/default.nix
Normal file
20
modules/bat/testbeds/default.nix
Normal 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=";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue