16 lines
457 B
Nix
Executable file
16 lines
457 B
Nix
Executable file
{pkgs, ...}: {
|
|
# Beep as soon as possible in the initrd
|
|
boot.initrd = {
|
|
kernelModules = ["pcspkr"];
|
|
extraFiles.beep.source = pkgs.beep;
|
|
postDeviceCommands = "/beep/bin/beep -f 3000 -l 50 -r 2";
|
|
};
|
|
/*
|
|
systemd.services.startupBeep = {
|
|
description = "Beep when system started booting";
|
|
wantedBy = [ "sysinit.target" ];
|
|
script = "${pkgs.beep}/bin/beep -f 3000 -l 50 -r 2";
|
|
serviceConfig = { Type = "oneshot"; };
|
|
};
|
|
*/
|
|
}
|