26 lines
528 B
Nix
26 lines
528 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
scope "user.systemd.services.startup-sound"
|
|
<| {
|
|
unitConfig = {
|
|
Description = "startup sound";
|
|
Requires = [
|
|
"graphical-session.target"
|
|
];
|
|
After = [
|
|
"graphical-session.target"
|
|
"niri.target"
|
|
"sound.target"
|
|
"shell.service"
|
|
];
|
|
PartOf = [ "graphical-session.target" ];
|
|
};
|
|
serviceConfig = {
|
|
ExecStart = "${lib.getExe' pkgs.alsa-utils "aplay"} " + ../assets/startup.wav;
|
|
Type = "oneshot";
|
|
};
|
|
wantedBy = [ "graphical-session.target" ];
|
|
}
|