Is there a way to pass a startup argument declaratively in NixOS? I’m not seeing any options for hyprland for passing arguments.
I would like to pass a --quiet (-q) argument to keep hyprland from spamming the terminal for a second after logging into the greetd login manager. It looks like the quiet argument was recently commited.
Since you’re using greetd, the best way is probably going into greetd’s config and providing the argument in the Hyprland command. Add something like this to your NixOS config:
services.greetd.settings = {
default_session = {
command = "${pkgs.hyprland}/bin/Hyprland -q";
};
};
My command looks like this:
command =
"${pkgs.greetd.tuigreet}/bin/tuigreet --remember --asterisks --container-padding 2 --time --time-format '%I:%M %p | %a • %h | %F' --cmd 'Hyprland -q'";
I think that’s going to work, but the commit to add the quiet argument was made to Hyprland v0.41.1 and the NixOS 24.05 and unstable repos are both on Hyprland v0.41.0. As soon as the NixOS repos are updated, I’ll test it out.