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