diff options
| author | David Morgan <djm_uk@protonmail.com> | 2025-12-05 21:41:30 +0000 |
|---|---|---|
| committer | David Morgan <djm_uk@protonmail.com> | 2025-12-05 21:41:30 +0000 |
| commit | b5e5ca3fbb85e8ef2f436096023b78f94e86d68f (patch) | |
| tree | fb98e6bfde72a082a966fe3a8ef3ca4efbc84374 | |
| parent | 73794ff4b913a81d6500c6aa42761e375afa566b (diff) | |
| download | dotfiles-b5e5ca3fbb85e8ef2f436096023b78f94e86d68f.tar.gz | |
Stop boot messages from breaking tuigreet now we're forced onto vt1
| -rw-r--r-- | nix-conf/hosts/nixos/modules/services/greeter.nix | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/nix-conf/hosts/nixos/modules/services/greeter.nix b/nix-conf/hosts/nixos/modules/services/greeter.nix index 8092fcf..6ab559d 100644 --- a/nix-conf/hosts/nixos/modules/services/greeter.nix +++ b/nix-conf/hosts/nixos/modules/services/greeter.nix @@ -3,17 +3,30 @@ services.greetd = { enable = true; settings = { - default_session.command = '' - ${lib.getExe pkgs.tuigreet} \ - --time \ - --asterisks \ - --user-menu \ - --cmd sway - ''; + default_session = { + command = '' + ${lib.getExe pkgs.tuigreet} \ + --time \ + --asterisks \ + --cmd sway + ''; + }; }; }; environment.etc."greetd/environments".text = '' sway ''; + + # Prevent boot messages from messing up tuigreet + # (https://github.com/sjcobb2022/nixos-config/blob/720ffb2c9c7f3643460de5f31bcca30ec38c1ebe/hosts/common/optional/greetd.nix) + systemd.services.greetd.serviceConfig = { + Type = "idle"; + StandardInput = "tty"; + StandardOutput = "tty"; + StandardError = "journal"; + TTYReset = true; + TTYVHangup = true; + TTYVTDisallocate = true; + }; } |