20 lines
473 B
Nix
Executable file
20 lines
473 B
Nix
Executable file
{
|
|
config,
|
|
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"; };
|
|
};
|
|
*/
|
|
}
|