fix(hypr): get rid of logs shown on the TTY right before Hyprland launches
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
a504422ca8
commit
5b1c564e72
2 changed files with 12 additions and 16 deletions
|
@ -7,7 +7,7 @@ self: {
|
||||||
inherit (self.inputs) hyprland;
|
inherit (self.inputs) hyprland;
|
||||||
inherit (self.lib.hypr) mkBind mkMonitor;
|
inherit (self.lib.hypr) mkBind mkMonitor;
|
||||||
|
|
||||||
inherit (lib) attrValues concatStringsSep mkIf optionals;
|
inherit (lib) attrValues concatStringsSep mkIf optionals removeSuffix;
|
||||||
|
|
||||||
cfg = config.roles.desktop;
|
cfg = config.roles.desktop;
|
||||||
|
|
||||||
|
@ -83,11 +83,14 @@ in {
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package =
|
|
||||||
hyprland
|
# Get rid of logs shown on the TTY right before Hyprland launches
|
||||||
.packages
|
package = hyprland.packages.${pkgs.system}.default.overrideAttrs (o: {
|
||||||
.${pkgs.system}
|
postInstall = ''
|
||||||
.default;
|
${removeSuffix "\n\n" o.postInstall} \
|
||||||
|
--append-flags '&>/dev/null'
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
systemd.variables = ["-all"];
|
systemd.variables = ["-all"];
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
self: {
|
self: {
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) getExe mkIf;
|
||||||
|
|
||||||
cfg = config.roles.desktop;
|
cfg = config.roles.desktop;
|
||||||
|
|
||||||
|
@ -17,12 +16,6 @@ self: {
|
||||||
.windowManager
|
.windowManager
|
||||||
.hyprland
|
.hyprland
|
||||||
.finalPackage;
|
.finalPackage;
|
||||||
|
|
||||||
# Hide TTY on launch
|
|
||||||
cmd = toString (pkgs.writeShellScript "hyprland-wrapper" ''
|
|
||||||
trap 'systemctl --user stop hyprland-session.target; sleep 1' EXIT
|
|
||||||
exec Hyprland >/dev/null
|
|
||||||
'');
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ./ags self)
|
(import ./ags self)
|
||||||
|
@ -37,12 +30,12 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = cmd;
|
command = getExe hyprland;
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
};
|
};
|
||||||
|
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = cmd;
|
command = getExe hyprland;
|
||||||
user = cfg.user;
|
user = cfg.user;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue